Calculating energy transferred by appliances | Electricity