Energy
Cost =
Energy × cost per unit  or
Cost =
Power × time × cost per unit