I have to come up with a way to plug in a number (in this case measured in Kilowatts, but that is less important) and calculate how many hours it would take before we run out of fuel. Here is the information I have available:

Fuel amount available

Total Load (in Kilowatts)

Fuel burn rates for the diesel generators at specific load %'s

Example: a 1500KW generator burns 29.2 gallons per hour at 25% (1500 * .01945), 47.6 gallons at 50% (1500 * .03175), 68.1 Gallons at 75% (1500 * .0454), and 87.3 Gallons at 100% (1500 * .0582)

What I need to do is be able to figure out at any given percentage load how much it will burn instead of just at those specific loads. From that I would be able to take fuel amounts and divide it by the fuel burn at the given load. I am not sure how to figure out if I have a 18% load what the multiplier would be for each percentage point. (assume a resolution of no more than 1 decimal point)