Demurrage and detention calculator
Demurrage and detention run on separate clocks. Demurrage is time inside the terminal; detention is time outside the terminal with the carrier's container. Choose the basis you are checking, enter the free days, actual days, and the tiered rates from your tariff, and the calculator splits the chargeable days by tier. It runs in your browser and does not upload your figures.
The source review is due. Check the official guidance before using the result.
Your results
Enter your figures to see the calculation here.
This is tier arithmetic, not a carrier or terminal quote, invoice, or tax determination. Free-time start rules, calendar-day counting, part days, equipment type, port, combined or separate billing, free-time extensions, disputes, and waivers all follow your bill of lading, booking confirmation, carrier or terminal tariff, and contract. The worked example uses Maersk China's published combined D&D tier schedule only to demonstrate the official arithmetic; it is not a rate for your shipment. Amounts are rounded to cents and exclude storage, plug-in, chassis, trucking, exam, tax, and other surcharges.
How it works
- Chargeable days = max(0, days used − free days).
- First-tier days = days after free time through the first-tier end day; second-tier days = days from the first-tier end day through the second-tier end day; third-tier days = days after the second-tier end day.
- Charge per container = first-tier days × first-tier rate + second-tier days × second-tier rate + third-tier days × third-tier rate.
- Total charge = charge per container × number of containers; round the per-container and total amounts to cents.
- Official example: CNY100×1 + CNY240×5 + CNY300×5 = CNY2,800.
Try a worked example
Official example: Maersk China's combined D&D schedule has 1–7 days free, CNY100/day for days 8–15, CNY240/day for days 16–20, and CNY300/day from day 21. With 14 special free days and 25 days used, day 15 is CNY100, days 16–20 are CNY240 each, and days 21–25 are CNY300 each: CNY100×1 + CNY240×5 + CNY300×5 = CNY2,800. The example is illustrative, not your invoice or customer data.
What this calculation covers
This is tier arithmetic, not a carrier or terminal quote, invoice, or tax determination. Free-time start rules, calendar-day counting, part days, equipment type, port, combined or separate billing, free-time extensions, disputes, and waivers all follow your bill of lading, booking confirmation, carrier or terminal tariff, and contract. The worked example uses Maersk China's published combined D&D tier schedule only to demonstrate the official arithmetic; it is not a rate for your shipment. Amounts are rounded to cents and exclude storage, plug-in, chassis, trucking, exam, tax, and other surcharges.
Frequently asked questions
What is the difference between demurrage and detention?
Maersk's Chinese explainer defines demurrage as time inside the terminal beyond free time and detention as time outside the terminal with the carrier's container beyond free time. They have different clocks and can be billed separately, so check each one rather than applying one free period to both.
When does free time start?
It depends on the carrier, port, and tariff. Maersk's US import page says demurrage free time generally starts at 08:00 on the first business day after discharge at an ocean terminal, while detention free time starts on the day the equipment leaves the carrier's container yard. Other locations and carriers can differ; use your bill of lading, booking confirmation, or local tariff.
How do I apply a progressive tier schedule?
Identify the clock day range covered by each tier, then split the days after free time across those ranges. In Maersk China's published example, days 1–7 are free, days 8–15 are CNY100/day, days 16–20 are CNY240/day, and day 21 onward is CNY300/day. With 14 special free days and 25 days used, the charge is CNY100×1 + CNY240×5 + CNY300×5 = CNY2,800.
What must a US D&D invoice include?
FMC regulations in 46 CFR Part 541 require an accurate invoice with the applicable rule, the specific rate or rates, timing information, dispute contact information, and certifications. A billing party must issue the invoice within 30 calendar days from the date the charge was last incurred. The rule governs invoice content and timing, not the dollar rate, and non-US invoices follow local law and contract.
Can I use this result to dispute an invoice?
Use it as a line-by-line starting point, not as a substitute for the invoice. Match the free time, clock start, equipment type, currency, and tier boundaries to your bill of lading, booking confirmation, and tariff. Check whether billing is combined or separate, whether free time was extended, and whether port closures or carrier-caused delays should be excluded. The calculator does not handle disputes, waivers, or tax.
Prepared by NWi using the official sources listed above. Sources checked 5 December 2026.
E-commerce data, methods and reports
Explore NWi CrossborderGo product pages, platform coverage, data definitions and published research. Each source states its scope, definitions and limits.