← Cargo-Stack
Freight tools

Demurrage & detention calculator

Tiered tariff over free time, per container — and the number that moves customers: what tomorrow costs.
From the tariff or your contract — count the clock the way the line counts it (often calendar days including weekends).
Discharge (or pickup) to today, inclusive, by the tariff's counting rule.
How many chargeable days the first rate covers.
Per container per day, in the tariff currency.
The open-ended rate after the first tier. Usually double or worse.
Each accrues separately.

How this is worked out

Two different clocks share this arithmetic. Demurrage runs while the container sits inside the terminal past its free time; detention runs while the container is out with you — at the warehouse, unpacked or not — past its free time. Same tariff shape, same tiers, separately billed, and a box can incur both on one trip. This tool computes either; run it twice for a shipment caught on both clocks.

The tariffs are tiered on purpose: a few days at a tolerable rate, then a jump designed to hurt. The commercial meaning of the jump is "the line wants its box back", and the operational meaning is that the marginal cost of delay is not constant — the day that crosses a tier boundary can cost double the day before it. Averages hide this; the per-day delta is the honest number.

For a forwarder the money is usually not even the worst part — the worst part is whose money it is. Charges accrue against the party on the line's records, which is often you, while the delay belongs to a consignee who has not cleared or a warehouse that has no slot. The defence is speed of information: know the number daily, tell the customer with tomorrow's figure attached, and get the protest on record before the invoice exists.

A worked example

Two containers, 5 free days, 9 days used. Tariff: 3 days at 60, thereafter 120.
Chargeable: 9 − 5 = 4 days.
The tariff walks: 3 × 60 + 1 × 120 = 300 per container, × 2 = 600 accrued.
One more day is entirely in the 120 tier: +240 across both boxes — double what day one of the charges cost. That +240 is the sentence that gets the consignee's broker moving this afternoon.

What this does not do

Questions people actually ask

What is the difference between demurrage and detention?

Where the container is. Inside the terminal past free time is demurrage; outside with the merchant past free time is detention. A box discharged Monday, picked up the following Friday and returned empty two weeks later can owe demurrage for the terminal days and detention for the street days, each on its own tariff. Some lines merge them into one "combined" free time — the tariff wording decides, so read it before assuming.

Can demurrage be negotiated or waived?

Before the fact, yes — extended free time is a standard ask in any volume negotiation and costs the line little to grant. After the fact, sometimes: lines do reduce charges where the delay was demonstrably theirs (late availability, terminal congestion they controlled) or where a good customer asks once, politely, with the timeline documented. What never works is silence followed by refusing the invoice — by then the leverage has left the building.

Why does one extra day sometimes cost double the previous day?

Tier boundaries. The tariff might run 60 a day for three chargeable days and 120 thereafter; the fourth chargeable day costs 120 while the third cost 60. The calculator computes the next-day figure as a true delta across the boundary rather than quoting yesterday's rate, because the day it matters most is exactly the day the rate jumps.

Does free time include weekends and holidays?

Usually yes — most lines count calendar days, so a box discharged on Thursday can burn most of its free time over a weekend nobody works. Some tariffs and some charters count working days instead. It is a definition, not a custom: the tariff's own wording governs, and the difference routinely decides whether a shipment pays nothing or pays the top tier.

Related tools

LCL vs FCL calculatorWhich is cheaper on your numbers, and the volume where that changes. Landed cost calculatorThe full to-door figure, and what quoting VAT off the wrong base would have lost.
These numbers, on every quote you send

Cargo-Stack reads the enquiry, prices it against your own rates, and drafts the quote — with this arithmetic underneath it. Same maths, no retyping.

Try it on a real enquiry
Want this checked on your own lanes?
WhatsApp the numbers to a real person — we’ll sanity-check them free. Or let the console run the whole calculation on live rates.
📲 WhatsApp us Start free trial →
Cargo-Stack — AI quoting software for freight forwarders worldwide. These calculators are free, need no sign-up, and send nothing you type anywhere.
Privacy · Terms · Freight tools