I am trying to calculate the work function from electrostatic difference potential and fermi energy by quantum atk software. I draw these two graph but they do not push each others. (please see the image). would you please guide me where is my mistake?