Work Function Formula In Photoelectric Effect