Calculates electric energy as power × time. Power is in watts, time in hours, and energy in watt-hours; 1000 Wh is 1 kWh. Multiplying by the unit price gives the cost.