Total Orbital Energy Formula