On the calculation of electron binding energies