Free Excel Templates

Demurrage and Detention Calculator (Excel)

An unlocked Excel calculator for container demurrage and detention: enter your tiers, dates and free days, and read the charge by tier, the FMC billing rule tests and the amount payable as invoiced, container by container.

A demurrage or detention invoice raises two questions: is the charge computed correctly, and is it payable at all? This calculator answers both. It counts dwell and street days, prices each chargeable day at the rate of its tier, then applies the two mechanical tests of the FMC billing rule: the 30-day issuance clock for each charge and the required invoice elements.

Get the Excel calculator

One unlocked Excel workbook, zero macros. Free: enter your email address and the download opens at once, along with the other free models.

Demurrage_Detention_Calculator.xlsx (13 KB)

You join the reader list: one email when a new free model or book comes out. Unsubscribe in one click. Already subscribed? Enter the same address. How your address is used.

The handbook behind this calculator

This calculator is the short version of the 19-tab workbook in The Demurrage and Detention Handbook, which follows one importer from its container flows and tariff tiers through the annual bill, an invoice audit against the FMC billing rule, disputes and charge complaints, to a free time negotiation and a 2027 budget.

Paperback PDF edition, $19.99 Book page and full workbook

What is inside the workbook

Calculator
Blue input cells: three demurrage tiers and three detention tiers (days and daily rates); then, for up to eight containers, the container number, the availability, out-gate and empty return dates, the demurrage and detention free days, the invoice date, and five yes or no cells for the groups of required invoice elements (identifying, timing, rate, dispute, certifications). Black formula cells: dwell and street days, the last free day of each clock, chargeable days, the charge by tier and in total, the days from out-gate and from empty return to the invoice, the 30-day issuance test for each charge, the date until which a request for mitigation, refund or waiver is within the window, whether all elements are present, the amount payable and not payable as invoiced, and a verdict. A check cell compares the totals with the tier table and flags negative inputs and dates out of order; it must read 0.
Annual_Budget
Import containers a year, average dwell and street days, free days and chassis rent per street day; returns chargeable days and charges per container, the annual demurrage and detention and the chassis rent, with a note on why averages understate.
About
How to use it, what it returns, what it cannot do (weekends, holidays, closures or customs holds inside free time, working-day tariffs, merged clocks, export earliest return dates, the reasonableness of a charge, who may be billed, the NVOCC chain and its extra 30 days) and the common input errors.

The prefilled example

The file opens with Example Co., an illustrative importer that carries 6 West Coast containers of the book's case; every figure is invented. With 4 free days on each clock and tiers of $225, $375 and $550 a day for demurrage and $200, $250 and $300 for detention, the 6 containers are billed $12,600, and only $6,650 is payable as invoiced: one invoice came more than 30 days after both charges were last incurred, and another is missing a required element, so $5,950 is not owed as billed. Overwrite the blue cells with your own data, keep the formulas, and read the check cell before any result.

How to use it on a stack of invoices

  1. Enter the free time and tiers from your tariff or service contract, the ones the invoice cites as the rule behind the rate.
  2. For each container, take the availability, out-gate and empty return dates from gate records, not from the invoice.
  3. Enter the invoice issue date, not the due date, and answer the five element questions from the invoice itself.
  4. Read the payable amount, then the request deadline: the billing party must allow at least 30 calendar days from the invoice date to request mitigation, refund or waiver.
  5. For charges that pass both tests but accrued when empties could not be returned or during a customs hold you did not cause, prepare a merits dispute.

For the definitions and the tier arithmetic, read demurrage vs detention; for the dispute steps and deadlines, how to dispute demurrage and detention charges; before a contract negotiation, what extra free time is worth.

The calculator applies separate demurrage and detention clocks in calendar days and the mechanical tests of 46 CFR part 541 as read in November 2026; it cannot judge reasonableness, who may be billed, merged clocks or export earliest return dates, and its result is a check, not the billing party's invoice. Education only, not legal, customs, tax or accounting advice.

Questions practitioners ask

What does the demurrage and detention calculator compute?

For up to eight containers, from your rate tiers, dates and free days, it returns dwell and street days, the last free day of each clock, chargeable days, the demurrage and detention charge by tier, the days from each last-incurred date to the invoice, whether each charge was invoiced within 30 days, the date until which you can still request mitigation, refund or waiver, whether all required invoice elements are present and the amount payable as invoiced.

Does it say whether a charge is reasonable?

No. It checks the arithmetic and the two mechanical tests of the FMC billing rule: required elements and the 30-day issuance clock. Whether a charge is just and reasonable under the incentive principle, for example detention charged while empties could not be returned, is decided case by case.

How does it count days?

The availability day counts as day 1 of dwell and the out-gate day as day 1 of street time, as in the book's case tariff, in calendar days. If your tariff counts working days or excludes holidays, closures or customs holds, enter the free days your tariff actually gives.

Why does the annual budget tab understate?

Daily rates rise by tiers and nothing is charged inside free time, so a few long-dwelling containers cost far more than average days suggest. For the book's West Coast case, the full distributions give $982.00 per container; averages give less. Use your own distribution when you have it.