One load of fuel
How a single delivery becomes four records, why they rarely agree, and what it takes to make them into one.
The delivery
A transport pulls onto the lot. The driver connects a hose to the fill cap of the regular tank, and several thousand gallons drop through a tube into a tank buried under the concrete. When the hose comes off, the driver hands over a bill of lading. It is the first record of the load, and it is written by the supplier.
In our example the bill of lading says 8,150 net gallons of regular. It also shows a gross figure, 8,203. The two differ because fuel expands and contracts with temperature: the net figure is corrected to a standard temperature, and it is the number the station is billed for.
The instrument
Under a second cap, a probe stands in the tank from top to bottom. A float rides on the surface of the product, and the tank gauge reads its height. That reading is the only witness to the delivery that is not a piece of paper.
Height is not volume. A buried tank is a cylinder lying on its side, so an inch of fuel near the middle of the tank holds far more than an inch near the bottom. The gauge converts each height into gallons using the tank’s chart. In a perfectly round tank, the bottom quarter of the height holds less than a fifth of the volume; the next quarter holds almost a third.
Height is not volume in a horizontal tank.
A cross-section of a horizontal cylindrical tank divided into four equal bands of height. The bottom quarter of the height holds 19.6% of the tank; the second quarter holds 30.4%. Beside it, the curve that converts the height of product into the share of the tank's volume, with the levels before (3,112 gallons) and after (11,240 gallons) the delivery marked.
Before the drop, the gauge read 3,112 gallons. After the product settled, it read 11,240. The tank received 8,128 gallons. The bill of lading says 8,150.
Twenty-two gallons on a load this size is a small difference. It can come from temperature, from fuel sold at the pumps while the delivery was running, from the gauge, or from the delivery itself. On its own it is not an accusation. It is a question, and somebody should be able to see it.
The paper
Days later the invoice arrives. It bills 8,150 gallons at $2.4113 a gallon: $19,652.10. Then the supplier drafts $19,652.10 from the station’s bank account. The payment draft is the fourth record of the same load.
Each document is correct by its own lights. They come from different systems, in different formats, on different days, and none of them refers to the others in a way software can simply trust. Making them agree is work. It is somebody’s job, and very often it is the owner’s.
The record
MyFuelHQ reads all four — the bill of lading, the tank gauge, the invoice and the payment draft — and keeps one record per load. The load is matched to its invoice and to its payment, and what the gauge measured is set against what was billed.
The record does not decide what the twenty-two gallons mean. It puts the number in front of the person who can find out, while the delivery is recent enough to ask about it.
Every morning
Once every load is matched, the station knows what the fuel in each tank actually cost. Set against its point-of-sale reports, that becomes cost and profit per gallon, grade by grade, and MyFuelHQ shows it every morning.
Morning report · 6:00 a.m.
Cost and profit per gallon, by grade
| Grade | Cost | Price | Profit |
|---|---|---|---|
| Regular | 2.4113 | 2.899 | 0.4877 |
| Plus | 2.7020 | 3.299 | 0.5970 |
| Premium | 2.9384 | 3.599 | 0.6606 |
| Diesel | 2.6651 | 3.199 | 0.5339 |
Regular, yesterday’s load 22 gallons short against the bill of lading
Why this is the work
None of this is glamorous. It is also not the kind of work frontier AI is being built for: documents that were never designed to be read by software, checked against instruments in the ground, for people who are not sitting at a desk. That is the work the lab exists to do. One load of fuel is the smallest version of it.
Lyon Park Labs · Arlington, Virginia