Demurrage Detention Cost
Calculator

Inputs

Billable days
4

Results

Billable days
4
Total demurrage/detention cost
600

Results

Billable days4
Total demurrage/detention cost600

formula-map diagram

Billable days
4
Total demurrage/detention cost
600

Diagram

Formula

Demurrage cost = max(0, days held − free time days) × daily rate

= 4

Note

This is a simplified model using standard logistics formulas; real-world contracts, carrier rules, and regulations may add further terms.

Example: with the default inputs, calculator.logistics.billable_days is 4.

More in Logistics and shipping

See all →

Frequently asked questions

How is demurrage and detention cost calculated?+

Billable days are the days held minus the free time, never below zero. That number is multiplied by the daily rate. With the defaults, 7 days minus 3 free is 4 days at 150, or 600.

What happens if the container is returned within free time?+

Billable days are zero and so is the cost, because the calculator floors the difference at zero.

Does it matter if the rate is demurrage or detention?+

Not for the math. The calculator applies one flat daily rate to every billable day, so enter the rate your carrier or terminal quotes.

Does this handle tiered rates or weekends?+

No. It uses a single daily rate and counts days as you enter them. Tiered tariffs, calendar rules or surcharges are not modelled.

Is the result what I will be invoiced?+

Not necessarily. It is an estimate based on your inputs. Your carrier's tariff and contract terms decide the actual invoice.