Calculation of Electron Affinities