AI tools for trucking · Detention Billing
Detention billed from ELD evidence instead of being forgotten.
The ELD already knows when the truck entered and left the shipper’s yard. This tool turns that into the billable time under the rate confirmation’s terms, tells the broker when free time runs out, and writes the invoice.
The problem
Nobody tracks the clock
The driver waits four hours at the dock. By the time billing hears about it, the times are a guess.
No notice, no pay
Many brokers only approve detention if they were told when free time ran out, not a week later.
Every rate con is different
Two hours free or three, $50 or $60 an hour, 15-minute steps or full hours, a daily cap.
Disputes need proof
“Your driver was late” or “that wasn’t that long” ends the claim without timestamps.
How it works
01
ELD geofence
Arrival and departure come from the first ELD ping inside and outside the facility geofence.
02
Driver app events
Check-in, at door and loaded or unloaded are added from the driver’s status updates.
03
Terms from the rate con
Free time, rate, billing step, cap and the late-arrival rule. Our defaults only when the RC says nothing.
04
Clock rules
Early truck: the clock starts at the appointment. Late truck: at arrival, never at the missed appointment.
05
Notice on time
When free time runs out the broker gets a timestamped notice, so approval is not a fight later.
06
Invoice and evidence
Detention invoice, an ELD evidence sheet and an email draft, ready for billing to send.
Try it
Three stops from yesterday on Lakeview demo loads. Pick one, change the terms, and download the invoice and the evidence sheet. The rules run in code, without AI.
Try it in 3 steps
Demo data · Lakeview Freight Lines (fictional)
Money left on the table
A rough calculator for your own fleet. Every number below is an input you control.
Assumptions, not results. Put in your own numbers; the defaults are placeholders.
Per week
$188
Per month (4.33 weeks)
$812
Per year (52 weeks)
$9,750
Formula: events × hours × rate × share not billed. It ignores daily caps and broker disputes.
Scenarios it handles
The driver forgets to check in at the shipper
The tool: Takes arrival and departure from the first ELD ping inside and outside the 0.5-mile geofence. App events only add detail.
You get: Wait times that do not depend on anyone remembering to tap a button.
The rate con says nothing about detention
The tool: Falls back to your default terms (2h free, $50/h, 15-minute steps, $500/day) and names that source on the invoice.
You get: A claim on every load, with the terms it used written on it.
A long wait runs past the daily cap
The tool: Rounds the time over free time up to the billing step, then stops at the cap. Lower the cap in the demo to see it apply.
You get: An invoice line marked 'daily cap applied', never more than the terms allow.
The truck was late and the terms pay nothing for late arrivals
The tool: Checks arrival against the appointment and applies the rate con's late-arrival rule: clock from arrival, or no detention at all.
You get: No claim the broker will reject, and the reason written next to the zero.
The load has no appointment time
The tool: Starts the clock when the truck entered the geofence and says so in the step-by-step math.
You get: A clock start you can explain in one line if the broker asks.
Your rules, not ours
Everything below is a setting your team agrees once. The demo shows Lakeview's values.
- Free time
- Demo: 2 hours by default; 3 hours on Red River Freight's rate con
- Hourly rate
- Demo: $50/h by default; $60/h on Red River Freight's rate con
- Billing step
- Demo: 15 minutes, always rounded up
- Cap per day
- Demo: $500 by default; $600 on Red River Freight's rate con
- Late arrival
- Demo: Clock starts at arrival, never at the missed appointment (or no detention, if the terms say so)
- Facility geofence
- Demo: 0.5-mile radius around each shipper and receiver
Today vs. with the tool
| Step | Today | With the tool |
|---|---|---|
| Knowing how long the truck waited | The driver calls or texts dispatch; times are written down later from memory. | Arrival and departure come from ELD pings, with the driver's app events alongside. |
| Telling the broker free time is over | Dispatch has to watch the clock while handling everything else, so the notice is often late or missing. | A timestamped notice is drafted the moment free time ends. Dispatch sends it. |
| Applying the rate con's terms | Billing digs out the rate con for free time, rate, step and cap, load by load. | The terms on that load drive the math, shown step by step. Billing checks it. |
| Backing up the claim | A dispute ends with 'your driver was late' and no timestamps to answer it. | An invoice, an ELD evidence sheet with every ping, and an email draft. Billing approves and sends. |
Security and control
- In a pilot we start with read-only API access to one ELD and the rate cons you already have. Nothing in your ELD or TMS is changed.
- No notice, invoice or email goes to a broker without a person in billing approving it. In the demo they are drafted, never sent.
- Every geofence ping and driver event behind a number is kept and shown, with its source (ELD, driver app or rate con).
- The detention rules run in code, without AI, so the same stop always gives the same amount.
- Your data is not used to train AI models. Where pilot data is stored (which region, your cloud account or ours) is agreed up front, under an NDA.
Questions carriers ask
Does it replace my biller?
No. It does the clock-watching and the arithmetic. Your biller decides what to send and to whom.
What if the times are wrong?
Every step of the math is shown, with the pings behind it. If the geofence or a ping looks off, a person fixes it before anything goes out.
Which ELDs and systems does it work with?
Samsara, Motive and others through their API. Rate cons come in as the PDFs you already get; invoices go out through your own email and factoring or accounting system.
Will brokers actually pay?
That depends on the broker. What the tool changes is that the notice goes out on time and the claim arrives with timestamps.
Under the hood: what goes in, what comes out
What goes in
- ELD location pings around each shipper and receiver (Samsara, Motive and others, through their API)
- Driver app status events: checked in, at door, loaded or unloaded
- Appointment time and detention terms from the rate confirmation PDF that comes with each load
What the tool does
- Arrival = first ELD ping inside the 0.5-mile facility geofence; departure = first ping outside after that
- Early or on time: the clock starts at the appointment; late: at arrival, or no detention if the terms say so
- Free time, rate, billing step and daily cap come from the rate con; carrier defaults only when it says nothing
- Time over free time is rounded up to the billing step and capped per day
- When free time runs out, a timestamped notice to the broker is drafted
- If the stop is billable, an invoice, an ELD evidence sheet and an email draft are produced
- The rules run in code, without AI; a person in billing sends what goes out
What comes out
- Broker notice at the moment free time ends
- Detention invoice PDF and ELD evidence sheet PDF
- Email draft to the broker's carrier payables contact
Real in this demo
- The detention rules and the arithmetic shown step by step
- Real PDFs generated on request: the invoice and the evidence sheet
Simulated in this demo
- Lakeview Freight Lines, its loads, brokers, drivers and facilities are fictional
- ELD pings are simulated around a demo geofence; stops are always dated yesterday
- Rate-con terms are typed into the demo, not read from a PDF
- Notices and emails are drafted, never sent
What a pilot needs from you
- Read-only API access to one ELD, plus the facility geofences you already use
- Rate confirmations from a recent month, so we can read the detention terms
- Your default terms for when the rate con says nothing, and who approves changes to them
- Someone in billing compares our numbers with what you actually billed, before anything goes out
- Notices and invoices then go through your own email and your factoring or accounting system
Want this on your data?
We start read-only with one ELD and the rate confirmations you already have.
Book a 20-min call