The amount of energy (or work) necessary to entirely remove an electron from a metal surface is known as the electronic work function.
This energy is a measure of how securely a metal retains its electrons, or how much lower the energy of an electron is while present within the metal than when it is fully free.
The formula for work function , where is maximum kinetic emergy of electron.