Obtain the electron density in the p-doped region from the semiconductor equation (law of mass action). The potential over the p-n junction is related to the density of doping, how many times this is larger than the natural - intrinsic - density of carriers (electrons and holes).

Click on picture for original, larger version.