$${\Delta E=mgH_i-mgH_j}$$