# Formula for Calculating the Cost of Power of Diesel Generator

I need the formula to calculate the cost of power (Kilowatt hour) per thousand Imperial Gallons via a diesel generator.

The generator is a 60KW which consumes 3.8 gallons/hour.

The facility power is 19.9 KWHr.