What is demurrage?
Demurrage is a fee charged by shipping lines, terminals or vessel owners when cargo or equipment stays beyond the agreed free time. For containers it applies when a full box remains inside the port or terminal past its free days. For vessels it applies when loading or discharging runs past the laytime. Tariffs usually escalate: the longer the delay, the higher the daily rate.
How to use this calculator
Enter the total days the container or vessel was held, the free days granted, and the number of containers. Then define up to three rate tiers: the length and daily rate of tier 1, the length and daily rate of tier 2, and the daily rate that applies to all remaining days (tier 3). Amounts are your own, so use whichever currency your tariff is quoted in. The calculator returns the total owed, the days and charge in each tier, and the average cost per chargeable day.
The formula explained
First find the chargeable days, where \(D\) = days used and \(F\) = free days:
$$d = \max(0,\ D - F)$$Those days fill tier 1 first, then tier 2, and anything left falls into tier 3. With tier lengths \(L_1\) and \(L_2\):
$$d_1 = \min(d, L_1),\quad d_2 = \min(d - d_1, L_2),\quad d_3 = d - d_1 - d_2$$The total, for \(N\) containers, is:
$$\text{Demurrage} = N \times \left(d_1 r_1 + d_2 r_2 + d_3 r_3\right)$$
Worked example
A shipper holds 2 containers for 15 days with 5 free days. Tier 1 is 3 days at 100, tier 2 is 4 days at 200, and tier 3 is 300 per day.
$$d = 15 - 5 = 10,\quad d_1 = 3,\quad d_2 = 4,\quad d_3 = 3$$$$2 \times (3 \times 100 + 4 \times 200 + 3 \times 300) = 2 \times 2000 = 4000$$The total demurrage is 4,000, an average of 200 per chargeable day per container.
Demurrage Cost by Days Held: Scenario Comparison
The table uses one tariff throughout: 5 free days, tier 1 = first 3 chargeable days at 100/day, tier 2 = next 4 chargeable days at 200/day, tier 3 = every further day at 300/day, for 1 container. Only the days held changes. Currency is whatever unit your tariff uses.
| Days held | Chargeable days | Tier 1 days (100) | Tier 2 days (200) | Tier 3 days (300) | Total | Average per chargeable day |
|---|---|---|---|---|---|---|
| 5 | 0 | 0 | 0 | 0 | 0 | n/a |
| 8 | 3 | 3 | 0 | 0 | 300 | 100.00 |
| 10 | 5 | 3 | 2 | 0 | 700 | 140.00 |
| 15 | 10 | 3 | 4 | 3 | 2000 | 200.00 |
| 20 | 15 | 3 | 4 | 8 | 3500 | 233.33 |
Example of the arithmetic for 15 days held: chargeable days = 15 − 5 = 10; tier 1 = 3, tier 2 = 4, tier 3 = 10 − 3 − 4 = 3; total = 3 × 100 + 4 × 200 + 3 × 300 = 300 + 800 + 900 = 2000, so the average is 2000 ÷ 10 = 200 per chargeable day.
Notice that the average cost per chargeable day rises as the container stays longer, because more days fall into the higher tiers. The total scales linearly with the number of containers: with the same tariff, 3 containers held 15 days cost 3 × 2000 = 6000, provided all containers are held for the same number of days and share the same free time.
Demurrage Terms Glossary
- Free days / free time
- The period after discharge (or gate-in) during which no demurrage is charged. Calculator input: Free Days.
- Laytime
- In vessel charters, the time allowed to load or discharge a ship. Demurrage for a vessel is generally charged when laytime is exceeded; the charter party defines how laytime starts, stops and is counted.
- Chargeable days
- Days held beyond free time, equal to the larger of 0 and (days used − free days). Calculated by the tool, not entered.
- Tier
- A band of chargeable days with its own daily rate, for example days 1–3 at one rate and days 4–7 at a higher one. Calculator inputs: Tier 1 Length, Tier 1 Rate, Tier 2 Length, Tier 2 Rate and Tier 3 Rate. Tier 3 has no length; it covers all remaining days.
- Detention
- A charge for keeping a carrier's container (equipment) outside the terminal, for example at the consignee's premises, beyond the allowed time. Demurrage, by contrast, usually applies while the container is still inside the terminal or port.
- Per diem
- Latin for "per day"; the daily rate applied to chargeable days. It corresponds to the tier rates in the calculator.
- Dwell time
- The total time a container sits in a terminal or yard, from discharge to pick-up. It is related to Days Used but is not itself a charge.
- Combined demurrage and detention (D&D)
- A single tariff or invoice that covers both demurrage and detention, often with its own free time and tiers. If your carrier combines them, run the calculator once per phase or use the combined tariff.
Other inputs: Days Used is the number of days the container is held, and Containers is the quantity charged. Note that carrier tariffs and charter party terms define how days are counted: whether weekends and holidays count, when the clock starts and stops, and whether partial days round up. Always check your contract or tariff and enter the figures that apply to you.
FAQ
Do weekends count as free days?
It depends on the carrier tariff. Some count calendar days, others exclude weekends and holidays. Enter the days as your tariff defines them.
What if I only have one flat rate?
Set all three rates to the same value, or set tier lengths to 0 and use only the tier 3 rate.
Is demurrage the same as detention?
No. Demurrage is charged for containers sitting inside the terminal, while detention is charged for containers held outside the terminal past their return date. You can use this calculator for either if the tariff is tiered the same way.