How To Calculate Work Function