Calculating energy transfer by components