Calculate the energy required for the process