Energy consumed is calculated as Power (in kW) multiplied by Time (in hours). The total cost is the energy consumed multiplied by the rate per unit of energy (kWh).