Name the method generally used for calculation of lattice energy or electron affinity

Bom-Haber cycle is the method