The aforementioned effects have a great impact on the local charge distribution which is key when investigating the surface interactions and can lead to many different outcomes when it comes to adsorption. To measure the change in charge of the dopant after placing it in the structre, the difference in Löwdin charge is calculated: