Many-body calculations of the electron affinity for Ca and Sr.