Calculation of Power and Energy