Calculating energy transfer by components | Electricity