Calculation of power output, Calculation of kinetic energy