what is the formula in getting the energy?