Calculation of the Surface Photoelectric Effect