I want to get values of fermi level with pressure variations.

Formula (ne + nA = nh + nD) is need to be solved. However, it seems hard to solve this equation , is there anyone can give me some adive?