I am trying to calculate the cohesive energy of certain metal oxides. However, I am only able to find a formula that is applicable to systems with a single element (say $\ce{Cu}$ metal or $\ce{Si}$ crystal), that is
$E_\text{cohesion} = E_\text{bulk(per atom)} - E_\text{isolated_atom}$
(consider the example given here)
What will be the formula to calculate the cohesive energy for a metal oxide such as $\ce{CuO}$ or $\ce{SiO2}$?