Electric water heater calculations