The Theoretical Investigation of the Electron Affinity of Chemical Compounds