/ Free tool

Demurrage & Detention Calculator

Enter your discharge, gate-out and empty-return dates and your carrier's free days and daily rates. See your last free days, the charge in each tier, and what one more day costs. Nothing leaves your browser.

Dates and tariff

Box discharged from the vessel or available at the terminal

Full box picked up from the terminal

Empty box returned to the depot

Demurrage tariff
From charged dayRate per container per dayRemove
Day 1
Detention tariff
From charged dayRate per container per dayRemove
Day 1

The rates shown are examples. Use the free days and rates from your carrier's tariff or your contract; they differ by line, port, container size and type.

Charges

Total charges
$0
$0 per container · 1 container

Demurrage

Add the discharge date to start the clock

Detention

add the gate-out date to price it

How the charges are worked out

Demurrage: full box at the terminal

The clock runs from discharge until the full container leaves the terminal (gate-out). After the free days, the terminal or carrier charges a rate per container per day.

Detention: box outside the terminal

The clock runs from gate-out until the empty container is back at the depot. It has its own free days and rates. Some carriers bill both as one combined clock instead.

Tiers get more expensive

Most tariffs rise in steps, for example days 1 to 5 after free time at one rate and day 6 onwards at double. The calculator splits your charged days across the tiers you enter.

Questions

What is the difference between demurrage and detention?

Demurrage is charged while a full container stays at the terminal after its free time. Detention is charged while the container is outside the terminal, from gate-out until the empty box is returned, after its own free time.

Does the day of discharge count as a free day?

It depends on the carrier and the port. Many count the discharge day as day 1, while others start free time the following day. Use the tick box to match your tariff.

What does combined demurrage and detention mean?

Some carriers merge the two into one clock that runs from discharge to empty return, with one set of free days. Choose Combined D&D to price it that way.

Are weekends and holidays excluded?

This calculator counts calendar days, which is how most carriers bill. If your contract excludes weekends or public holidays, add those days to your free days.

Plan the load before the box arrives

Pack, unload and return containers faster with a 3D load plan, a loading chart and step-by-step loading mode for your crew.

Start free
3D Container Loading CalculatorCargo Stacking SoftwareSea Freight Packing OptimizerFreight Cube UtilizationContainer Load PlannerLogistics Stowing AlgorithmNesting & Bundling Calculator2D/3D Container Stowage PlanTruck & Trailer Cargo PackerPallet Load OptimizationLogistics Dispatch SoftwareBackrock Studios

© 2026 ContainerMath. All rights reserved. All calculations and packing manifests generated using industry-standard stowing logic.