Question: how to calculate kinetic energy of ejected electron?
Answer: The maximum kinetic energy KEe of ejected electrons (photoelectrons) is given by KEe = hf − BE, where hf is the photon energy and BE is the binding energy (or work function) of the electron to the particular material.