Here are the energy calculations