The invoice that arrives after the file has moved on
A demurrage or detention invoice often lands in the billing queue long after the container has moved on, and by then nobody working the file remembers whether the box sat at the terminal for four days or nine, or whether anyone agreed extra free time at booking. Someone has to decide, quickly, whether to pay it, dispute it or pass it to the customer with supporting evidence.
A charge paid without checking sets the precedent for the next one; a dispute filed without dated evidence gets rejected and delays settlement; a charge passed on with no backup becomes a conversation you did not prepare for. Rebuild the charge from the container’s own history before reacting to the invoice total.
What you are actually verifying
Demurrage and detention are separate charges measured from different events. Demurrage covers the time a full container spends inside the terminal, from discharge until it is picked up and gated out. Detention covers the time the container spends outside the terminal, from that pickup until the empty is returned to the port or a depot. Carriers allow free time for these activities, and charges start when it runs out; free time differs between ports and carriers.
That structure tells you what an invoice check has to confirm. Four things, in order:
- Free time. How many days applied at this port, and for which charge? Demurrage and detention free time are usually counted separately.
- Start and end events. The dated events the carrier used: discharge, gate-out full, gate-in empty, from container tracking, terminal records or the carrier’s event feed.
- The day count. Whether the billable days follow from those events and the free time, including how weekends or holidays are treated in the tariff.
- The rate. The per-day amount, and whether it escalates by period as the tariff says.
Rebuild the charge before you judge it
Open the invoice and the tracking history side by side. For each line, write down the event pair it depends on: which discharge date, which gate-out, which gate-in. If the invoice does not name its events, ask for the basis in writing — an unexplained day count is itself a reason not to pay yet.
Then compare against your own record. The gate-out on the invoice should match the pickup evidence you already hold — the haulier’s confirmation, the terminal receipt, the tracking event — and the gate-in empty should match the return. Where your record differs, you have found the dispute: state it as an event mismatch with two dated sources, not as a feeling that the number is too high. If the events agree and only the day count or rate looks wrong, check the free time and per-day basis the same way.
This is the same field-by-field discipline our carrier invoice reconciliation playbook applies to invoices after a booking change: match every line to a dated fact, and give each unmatched line a decision — pay, hold or dispute — with the evidence attached. Demurrage and detention add a specific evidence type: container events rather than amendment approvals. Keep the check with the file rather than in the inbox, so the booking amendment record still explains what changed and when.
An example
Example. An invoice arrives for detention on one 40-foot container: 11 billable days at £65 per day, £715. Tracking shows the full box gated out on 4 March and the empty gated in on 19 March; the booking record shows 5 days of free time at this port. Counting from the day after free time expires, the operator reconstructs 10 billable days, not 11 — the invoice has counted the day of gate-in itself, which the carrier’s own event timestamp places after the free day boundary.
The operator sends one message to the carrier: the invoice line, the two gate events with timestamps, the free time, and the day count that follows. The disputed day is £65; what matters more is that the file now holds the reconstruction, so any later query is answered by a dated comparison rather than a memory. If the tariff basis genuinely counts that day, the reply will say so, and the operator has learned the exact rule for next time.
Where AI fits, and where it must not
Rebuilding a D&D charge is repetitive work with structured inputs: event dates, free time, tariff basis, per-day rates — the shape of a task an AI workflow can prepare. An AI-assisted check can read the invoice PDF and the tracking events, extract the event pairs and day counts, compute the charge as the tariff describes, and present the comparison — invoice says 11 days, the events support 10 — for a person to review. The same works for a batch, flagging only the lines where the reconstruction and the invoice disagree.
What stays human is the decision. Paying, disputing and explaining a charge to a customer are commitments made in your company’s name, and the evidence pack a dispute rests on should be checked by the person who signs it: assemble and compare automatically, approve deliberately. Weigh this against other automation candidates the way our AI workflow evaluation guide suggests; Against those criteria, D&D checking is a strong candidate: the inputs are dated events, and the error cost is money leaving the business twice — an overpaid invoice, and staff time.
Do this before the next invoice
Pick one open demurrage or detention invoice and rebuild it from events: free time, start event, end event, day count, rate. Note what you could not verify — missing tracking events, unstated free time — because those gaps are your process problem, not just this invoice’s. Then decide: pay, dispute or hold. If you trade into the United States, the Federal Maritime Commission — the regulator of the U.S. international ocean transportation system — has published a Final Rule on detention and demurrage billing practices, and its website records enforcement in this area, including a court decision upholding that detention fees must promote freight fluidity. Within that regulatory scope, billing clarity is an obligation on carriers, which is one more reason to expect a U.S.-related invoice to stand up to a field-by-field check.
Once you know your evidence gaps, that is the point to talk to us about running this as a designed workflow. We build AI-assisted checking that assembles the event record, computes the charge and flags mismatches for human approval — scoped to your carriers, tariff references and invoice formats, as part of AI workflow development for ocean freight operations covering everything from quotations to invoice reconciliation. If D&D invoices are arriving faster than your team can rebuild them, Let’s talk about reviewing one invoice end to end with you.


