where Esys denotes the energy of the system, ni the number of atoms of type i in the system. Note that the formation energy depends on the size of the system and is typically normalized by the number of atoms or by the size of the surface area A of the (bulk) unit cell. Considering that the unit cell includes surfaces on the top and on the bottom side, the formation energy is normalized by 2A rather than by A, leading to