It is very challenging to simulate within DFT extreme electric fields (a few 1010 V/m) at a surface, e.g. for studying field evaporation, the key mechanism in atom probe tomography (APT). We have developed a straight-forward scheme to incorporate an ideal plate counter-electrode in a nominally charged repeated-slab calculation by means of a generalized dipole correction of the standard electrostatic potential obtained from fully periodic FFT.