Check your rate confirmation for the free time and hourly rate, log arrival and departure from at least two sources on every load, and invoice as soon as the load delivers. AI can then compare timestamps with the contract, work out the amount and draft the broker email, while you check every figure.
The money usually leaks in two places: nobody records the wait while it is happening, and the claim goes in too late, with a single handwritten time that the broker can dispute. Everything below targets those two gaps, from the cab to the invoice, with AI doing the paperwork you currently do at the end of a long week.
Start with what your paperwork says
Detention pay is a contract term, not a right. Whether you are owed anything depends on the rate confirmation for that load, your carrier agreement with the broker, or the shipper's terms where you deal directly. Pull the last ten rate confirmations and read the accessorial or detention clause in each. You are looking for six things:
- Free time: the hours allowed before charges begin, and what starts the clock (appointment time, arrival, check-in).
- Rate: a figure per hour, per half hour, or per day.
- Cap: a maximum number of hours or dollars per stop or per load.
- Proof required: signed times, a dated message, a photo, notice during the wait.
- Claim deadline: hours or days after delivery by which you must submit.
- How to submit: a portal, an email address, or a revised invoice.
Terms vary widely and some loads carry none, so build a one-row summary for each broker you work with regularly. An AI assistant is good at this extraction if you give it the clause and forbid guessing:
Below is the accessorial clause from a rate confirmation. Extract:
free time (hours) and what starts it, rate, cap, proof required,
claim deadline, how to submit. If the clause does not state one,
write NOT STATED. Quote the sentence for each.
Do not assume industry-standard terms.
An illustrative result: free time 2 hours from appointment time, rate $50 an hour billed in 30-minute increments, cap of 8 hours, proof "signed bill of lading showing times in and out", claim within 7 days of delivery by email to the broker's accounts address. Put that row in a sheet called Terms, one row per broker, and link each row to the document it came from. If a term reads NOT STATED, treat detention as unclaimable until you have it in writing, and ask the broker before you accept the next load. Triaging load emails and rate confirmations with AI covers reading those documents at volume, which makes this terms table easier to keep current.

The Complete Excel Course with AI Integration
From formulas and pivot tables to Power Query, DAX, VBA and AI with Copilot, ChatGPT and Claude — hands-on from the first lesson.
By Sagnik Bhattacharya and Virginia Thorn, Primetime Emmy Award winner
Buy nowCapture timestamps at the dock, from two sources
A single time written on the delivery receipt is the weakest evidence. Aim for three independent records of the same event: one the driver creates, one a device creates, and one the other party signs. Examples of each:
| Source type | Examples | Weakness |
|---|---|---|
| Driver-created | A message to dispatch on arrival; a photo of the gate or dock door with the phone clock | Can be challenged as self-reported |
| Device-created | Location history from the cab device or phone; geofence entry and exit logs from your fleet software | Shows the truck was there, not that it was waiting |
| Other-party-signed | Time in and out on the bill of lading; a receiving clerk's stamp; a gate log | Often incomplete or rounded |
Give drivers a one-minute routine and make it identical on every load. An illustrative script:
- On arrival at the gate, text or message dispatch with "[load number] arrived [place name], appointment [time]". The message itself is the timestamp.
- Take a photo of the gate sign or check-in screen if one is visible.
- Ask the clerk to write time in on the paperwork when you check in.
- If the wait passes the free time, message dispatch again with the time and who you were told is responsible.
- On leaving, photograph the signed paperwork before driving off and message "departed [time]".
Drivers resist anything that looks like extra paperwork, so show them what it earns. A driver who waited three hours past free time at $50 an hour has earned $150 for the company; if you pass part of it to drivers, tell them how much. The routine takes about a minute per stop; done right, the evidence builds itself.
Turn the raw messages into a clean log
By the end of a delivery week you have scattered messages, photos and location pings. Let AI turn them into one row per stop. Paste dispatch messages (with driver names replaced by codes) and any device log extract, and ask for a structured result:
Below are messages and location log lines for load [number].
Produce one table: stop, appointment time, arrival (with source),
departure (with source), minutes on site, free time from the terms
below, billable minutes. If two sources disagree by more than
10 minutes, flag the stop and show both. Do not average times.
Terms: free time 2 hours from appointment; billed per 30 minutes,
rounded up; $50 an hour; cap 8 hours.
An illustrative output for a delivery stop: appointment 08:00, arrival 07:48 (driver message), gate log 07:52, departure 12:35 (signed paperwork), 4 hours 43 minutes on site. The free time runs from the appointment, so billable time runs from 10:00 to 12:35, which is 2 hours 35 minutes, rounded up to 3 hours, giving $150. Check the arithmetic yourself, and note that the "rounded up" and "from appointment" choices are exactly the sort of detail a contract fixes; if the AI had not been given them it might have started the clock at the 07:48 arrival and skipped the rounding, claiming about $139 for 2 hours 47 minutes instead. This is why the terms go into the prompt, not the other way round.
When sources disagree
The most useful flag is a disagreement. If your driver says arrival at 07:48 but the signed sheet says 08:20, you have a problem to understand before a broker finds it. Ask the driver. One likely cause is a clerk writing the time the paperwork was processed, not the arrival time. In that case claim from the time you can prove and send the other evidence as support. Never adjust a time to make a number work; an inflated claim endangers the legitimate ones and your relationship with the broker.
A worked month, with numbers
An illustrative five-truck carrier hauls roughly 120 loads a month. On a review of the previous month's paperwork, 31 loads show waits beyond the contract's two-hour free time. The waits run from 30 minutes to 5 hours beyond free time, averaging 1 hour 45 minutes. At $50 an hour that is 31 x 1.75 x $50 = $2,712.50 of potential detention. Only 9 were invoiced, and 6 of those were paid in full, because the other three arrived after the 7-day claim deadline. Collected: about $525 on an average-sized claim of $87.50 each. The gap, over $2,000 in a month, is the opportunity.
These figures are invented to show the sums; your own last three months tell you the real number. Use the pattern as a question for your own figures: in this illustration the money is lost to claims never made or made too late, not to disputes, so the fix is capture and deadlines, and the AI helps most with the deadline.
Invoice templates a broker can pay without questions
A detention invoice is paid fastest when the person in accounts payable can match it to the load in thirty seconds. Use a fixed layout:
DETENTION INVOICE
Carrier: [company] Invoice no.: [number]
Broker: [name] Load / reference no.: [number]
Stop: [facility name and address as on the rate confirmation]
Appointment: [date time] Arrival: [date time] (source)
Departure: [date time] (source)
Time on site: [h:mm] Free time per rate confirmation: [h:mm]
Billable time: [h:mm] rounded per terms to [hours]
Rate: $[x] per hour Cap: [if any]
Amount due: $[total]
Attachments: signed bill of lading; dispatch messages; location log
Terms reference: rate confirmation [number], accessorial clause [number]
Ask the AI to fill this from your log row, but tell it to leave any field blank rather than make one up. Then check the total with a calculator. If the numbers in your row came from the prompt above, the invoice should be a copy with no new information, which is the safest design: the AI formats, it does not decide.
The broker email: short, factual, attached
The email's job is to make payment the easy next step. Keep it to the facts, the contract reference, the amount and the attachments. An illustrative draft the AI might produce from your log row:
Subject: Detention invoice, load [number], [facility name]
Hi [first name],
Please find attached our detention invoice for load [number],
delivered [date].
Our driver arrived at 07:48 for an 08:00 appointment and left at
12:35 (signed bill of lading attached). The rate confirmation allows
2 hours free from appointment time and $50 per hour after that,
billed in 30-minute increments. Billable time is 2 hours 35 minutes,
rounded to 3 hours: $150.
Attached: invoice, signed bill of lading, dispatch messages, location log.
Please let me know if you need anything else to process this.
[your name]
[company]
Good practice: send the email the day of delivery, to the address named in the rate confirmation, with the load number in the subject line so the broker's inbox rules can sort it. Leave out adjectives. "Our driver was unfairly held for hours" gives the reader something to argue with; "arrived 07:48, left 12:35" does not.
The polite follow-up
If a week passes without a reply, send a second note that restates the amount and attachments in one sentence and asks for a payment date. Draft it with AI, but keep the tone neutral. Polite reminders for unpaid invoices has wording that translates to freight with small changes, and chasing late invoices and missing proofs of delivery covers the wider collections routine for a trucking business.
When the broker pushes back
The usual replies, and an honest response to each:
| Broker says | Check first | Response |
|---|---|---|
| "The shipper says you arrived late." | Your arrival evidence against the appointment time | Send the arrival message and gate log; if you were late, claim only from the time the contract allows |
| "No notice was given during the wait." | Whether the contract requires notice at all | Send the dispatch message sent during the wait; if the term requires notice and none was sent, the claim may fail |
| "The cap is lower." | The clause as written | Correct the invoice to the capped amount |
| "We do not pay detention." | The rate confirmation | If the clause exists, quote it; if it does not, note the broker for future loads |
| "The claim is out of time." | The deadline against the delivery date | Accept it if true, and fix the process |
Use AI to draft each reply from the same evidence, but your own judgement decides whether to push. A broker you want on your books for years may be worth a smaller recovery than a bruising argument over $75.
Making the weekly routine run itself
Put the whole workflow into three recurring tasks, each with a named owner:
- Daily (dispatch, 10 minutes): every load delivered today with on-site time over the free time goes onto the claims sheet with its evidence links. A scheduled summary from your tracker or an AI prompt over the day's messages can list candidates.
- Next morning (billing, 15 minutes): draft and send each invoice and email for yesterday's candidates. Any with missing evidence go back to dispatch.
- Weekly (owner, 20 minutes): review claims sent, paid, disputed and past deadline. Note which brokers and facilities produce the longest waits.
The last task feeds back into the business. If one facility averages four hours of waiting on every pick-up, either charge for it in the rate, schedule it at quieter hours, or stop taking loads from it. A margin-by-lane analysis from a spreadsheet shows how to bring the waiting time into your cost per mile.
A mistake that cost a carrier two claims
An illustrative failure. A small carrier asked an assistant to "calculate detention for these loads" and pasted a spreadsheet of arrival and departure times without the contract terms. The assistant used a two-hour free period and $60 an hour, the numbers it had seen most often, and produced totals that looked right. Two brokers' contracts actually allowed one hour free at $45. One claim was overstated, which the broker flagged, and the carrier's credibility took a knock on that account; the other was understated, so money was left behind. The fix was a Terms sheet per broker, and a prompt rule: "use only the free time and rate for the broker named on each row; if the broker has no row, stop".
A second pattern is late arrival. If your driver arrives half an hour after the appointment, a contract may start the free time from arrival instead, or cancel detention for a late truck altogether. Include the appointment time and the arrival time in every row so the assistant can apply whichever rule the clause states, and so you do not claim for a wait you caused.
What an idle hour costs, and what to charge for it
Before arguing for an hourly detention rate, work out what a waiting hour costs you. Take the illustrative figures of a single truck: a driver paid $26 an hour, fuel burned while idling (take the idle burn from your own engine or telematics data; the illustration uses one gallon an hour at $4 a gallon), truck payment and insurance spread over 2,400 working hours a year at $11 an hour, and the revenue a truck could earn in that hour if it were moving, say $65 of linehaul margin. A waiting hour then costs about $26 + $4 + $11 = $41 in direct cost, and up to $106 once the lost revenue is counted. If your contracts pay $50 an hour after the free time, you are recovering the direct cost and little more. That is useful negotiating information: when a broker asks for a rate on a facility known for long waits, you can quote with the number in hand, and working out cost per drop from route and fuel data shows how to build the same sum for your own fleet.
Ask an assistant to build the sum from your payroll and fuel figures, then change the hours per day to see how the cost moves. The point is not precision; it is to know whether a $50 rate is a fair recovery or a discount, and which customers deserve a higher one. A sole owner-operator and a ten-truck fleet use the same method, but the owner-operator's labour figure is their own drawings, so be honest about what a day of your own time is worth.
Small fleet or one truck: what changes
A single owner-operator has no dispatcher, so the "message dispatch" step becomes a note to yourself or to a shared notes app, and the evidence matters more because nobody else was there. Set up a phone shortcut that creates a timestamped note with the load number, and photograph paperwork in the cab before you drive off. A fleet with several drivers should add one more line to the log: the driver code, so patterns by driver or by dock show up. If one driver's waits are consistently longer than colleagues' at the same facility, the cause is usually check-in routine, not luck, and a short conversation fixes it.
Policy: what you promise drivers and customers
Write a one-page internal policy so everyone knows what happens. It should state who decides to claim, what evidence the driver must capture, how long drivers have to submit it (end of the shift is practical), whether any of the money is shared with the driver, and what happens when a broker's terms are silent. A paragraph for the driver handbook might read: "Waiting past the free time on a load is paid by the customer only where our contract says so. Message dispatch on arrival and departure, and photograph the signed paperwork before you leave." Have a qualified adviser look at anything that touches pay, deductions or employment terms before you publish it.
Also decide what you will not claim. If a driver was late, if the load was not ready because of your own paperwork, or if a clause is unclear, say so. Customers who trust that your claims are accurate pay faster. For the bigger picture, this approach pairs well with the evidence habits in building a freight damage claim pack and letter, and my AI implementation consultation can help map the rest of your back-office steps if you want a second pair of eyes; the contact page is the place to ask.
Checks before you press send
- The load number and broker name on the invoice match the rate confirmation.
- The free time and rate come from that load's own paperwork.
- Arrival and departure each have two sources, and any disagreement of more than ten minutes is explained.
- Billable time is calculated from the correct start (appointment or arrival), rounded the way the clause says.
- The total is within any cap, and you checked it with a calculator.
- Attachments are the right ones and the file names are clear.
- You are inside the claim deadline.
- No personal data about the driver beyond what the broker needs.
Run through that list for the first thirty claims, then trim it to the lines that ever caught an error. Within a couple of months the capture routine, the Terms sheet and the templates will feel routine, and the weekly review will show what the waiting is costing you, whether or not a given broker pays.
Questions carriers ask about getting detention paid
When is a carrier actually owed detention pay?
Only when the contract says so. Look at the rate confirmation or carrier agreement for the free time, the hourly rate, any cap, and the notice or proof the broker requires. Time at the dock is not billable by itself; time beyond the agreed free period, documented as the agreement demands, is.
What counts as proof of detention?
Arrival and departure times from more than one source: a signed in and out time on the bill of lading, an in-cab device or phone location log, and a dated message to dispatch. Consistent records from separate systems are far harder to dismiss than one handwritten time.
Should I invoice detention separately from the load?
Some brokers want a separate accessorial invoice, others a revised load invoice, and the rule is in your paperwork. Follow whatever your rate confirmation and the broker's portal specify, and attach the evidence either way.
Can AI write the invoice and the broker email?
Yes, from the facts you give it. It is reliable for layout, tone and arithmetic you can check. It is not reliable for contract terms it has not read, so paste the clause into the prompt and read every number before sending.
How long should I wait before invoicing detention?
Invoice as soon as the load is delivered, within whatever deadline the rate confirmation sets. A late claim hands the broker an easy reason to refuse, so make the deadline a field in your tracker and clear it daily.
Further reads
- Carrier Packet Onboarding: AI Collects and Checks the Documents — The broker side of the same relationship: what they collect first.
- Demurrage and Detention: AI Tracks Free Days and Drafts Disputes — The container-side version of free time, tracking and disputes.
- Carrier Vetting Checklist: AI Checks With a Human Sign-Off — How brokers vet carriers, which shapes what you can ask for.
- AI for Freight Business Optimisation: Quotes, Loads and Follow-Ups — Quotes, loads and follow-ups from the broker side.
- AI for Freight Business Sustainability: Emissions Figures for Tenders — Idling figures also feed emissions numbers in tenders.
- AI Freight Quoting: Turn Customer Emails Into Draft Quotes — Put waiting-time terms into quotes before the load moves.
- AI Software for Trucking Companies: What to Check for a Small Fleet — A buyer's checklist for fleets of 3 to 25 trucks: per-truck pricing, load-board and accounting links, and a rate-confirmation accuracy test.
- How to Use AI in a Trucking Company: Load Paperwork Without Retyping — A step-by-step way to turn rate confirmation PDFs and broker emails into reviewed load records with ChatGPT or Claude and a two-tab sheet.
- DOT Audit Checklist for a Small Fleet: Organise Records With AI — A records checklist for a small trucking company, with retention periods, and a method for using AI to index files and flag gaps before a review.
- Get Direct Shipper Clients for a Trucking Business: AI Outreach — A lane-by-lane method for finding shippers who need your trucks, writing outreach that gets read and cutting your dependence on brokers.
- Negotiate Freight Rates: Prepare Counter-Offers With AI and Data — Work out your cost-per-mile floor, check a lane against your own history, and use AI to prepare a counter-offer, a short phone script and a walk-away number.
- Operator Licence Compliance: AI Tracks Checks, Audits and Renewals — A diary-and-sheet system for safety inspections, driver checks, maintenance records and change notifications, with AI prompts that keep it current.
- Owner-Operator Expenses: AI Sorts Receipts and Fuel Statements — A monthly routine: photograph receipts, sort fuel and card lines into categories, check totals and hand the accountant a clean summary.
- Owner-Operator Settlement Statement: Check Deductions With AI — Turn a lease and a settlement statement into two tables, compare them line by line, and send a dispute email with the evidence.
- Trucking Companies Using AI: A Claude Audit of Yard Time and Tolls — Export a month of telematics data, let Claude flag long yard stops and toll gaps, then check every flag against the raw rows.
- Trucking Company Safety Plan: AI-Drafted Policies and Toolbox Talks — Draft a policy outline, a year of ten-minute toolbox talks and an incident review form with AI, then have a person check the rules.
- AI Tools and AI Development: The Complete 2026 Guide — the AI hub, including every tutorial in the AI-for-business series.
Sources: the author's own method; detention terms, free time, rates and claim deadlines come from each carrier's rate confirmations and agreements, so none are quoted here.