What unit measures the amount of electrical energy?

The official unit to measure energy is joules, which is equal to watt-seconds. However, power companies charge you for electrical energy in kWh; one kilowatt-hour = 3.6 million joules.