Resources
Guide

How to calculate demurrage charges, with a worked example.

Listen to this guide
1x
Copy link
Demurrage calculation from free time, chargeable days and daily rates

Key takeaways

To calculate demurrage, find the free time in your contract or the carrier's tariff, count the chargeable days from the first day after free time until the container leaves the terminal, multiply each day by the daily rate that applies to it, and add the tiers together.

  • Formula: demurrage = sum of (chargeable days in each rate tier x the daily rate for that tier).
  • The answer depends on counting rules: calendar or working days, whether the first and last days count, and combined or separate clocks.
  • Take free time and rates from the governing contract or tariff, and dates from the shipment record.
  • Use the same rebuild to check the invoice and to accrue charges at month end.

How do you calculate demurrage?

Multiply the number of chargeable days by the daily rate for each of those days, then add the amounts together. Chargeable days start on the first day after free time ends and run until the full container leaves the terminal. Free time, the counting rules and the rate tiers come from your contract or the carrier's tariff, so read them before you count.

Demurrage = sum of (chargeable days in each rate tier x the daily rate for that tier)

What do you need to calculate demurrage?

  • The free time for the container, in days, and whether they are calendar or working days.
  • The event that starts free time, for example discharge or the date the container is available.
  • Whether that first day counts as a free day, and whether the gate-out day counts as a chargeable day.
  • The daily rate tiers, and the day each tier starts.
  • Whether demurrage and detention share a combined clock.
  • The actual availability and gate-out dates from the shipment record.

How do you calculate demurrage step by step?

  1. Find the start of free time. Take the clock-starting event from the contract and its date from the shipment record.
  2. Find the last free day. Count the free days forward using the contract's counting rule.
  3. Count the chargeable days. Count from the first day after the last free day up to the gate-out date, including or excluding the gate-out day as the contract says.
  4. Split the days into rate tiers. Put each chargeable day into the tier it falls in.
  5. Price each tier and add them up. Multiply the days in each tier by that tier's daily rate and sum the results.

Worked example: calculating demurrage (illustrative only)

The dates, free time and rates below are an example for one import container. They are not a market rate, a Beacon average or the terms of any real contract. Use your own contract and your own event dates.

Assumptions in this example

  • Demurrage free time is 4 calendar days, starting the day after the container is available.
  • The gate-out day is a chargeable day if it falls after the last free day.
  • Rates are tiered: £90 per day for chargeable days 1 to 3, and £150 per day from chargeable day 4 onwards.
StepDate in this example
Container available for collectionMonday 2 November 2026
Free time runsTuesday 3 to Friday 6 November 2026
First chargeable daySaturday 7 November 2026
Container gated out of the terminalThursday 12 November 2026
Chargeable days7 to 12 November 2026, which is 6 days
Chargeable daysDaysDaily rate (example)Amount
Days 1 to 33£90£270
Days 4 to 63£150£450
Total demurrage in this example6£720

How do counting rules change the answer?

Using the same example:

  • Working days instead of calendar days. Here the answer would not change, because Tuesday 3 to Friday 6 November are all working days. If the container had become available on a Thursday, the weekend would not use up free days, the last free day would move later and the chargeable days would fall.
  • Gate-out day not charged. If the contract did not charge the gate-out day, chargeable days would be 5 and the total £570.
  • Combined clock. If demurrage and detention shared one allowance, days used in the terminal would reduce the free days left for returning the empty container.

Why might my calculation not match the invoice?

The difference will sit in one of five places: the free-time allowance, the day the clock started, whether the first or last day was counted, the tier boundaries, or the rate itself. Check the contract amendment in force for the shipment, not an older rate card. Also check the same days have not been billed twice, once as demurrage and once as detention or storage.

On US trades in scope of the Federal Maritime Commission's billing rules, the invoice must show the free time, its start and end dates, the dates charged and the rate applied (46 CFR 541.6), which makes this comparison easier. That is a US rule, not a UK one.

How do I use this for month-end accruals?

Run the same calculation up to the period-end date for every container past free time with no invoice yet, and accrue the total. True it up when the invoice arrives. The finance method is in How do I see what demurrage and detention are costing us on the P&L?.

Related: What is demurrage? and What are detention charges and how are they calculated?.

Demurrage calculation FAQ

What is the formula for demurrage?

Demurrage equals the sum of chargeable days in each rate tier multiplied by the daily rate for that tier. Chargeable days are the days after free time ends until the container leaves the terminal.

When do chargeable days start?

On the first day after the last free day. The start of free time and the counting rule come from the contract or tariff.

Is the gate-out day charged?

It depends on the contract or tariff. Some count the gate-out day as a chargeable day and some do not, which can change the total by a full day at the highest tier.

How much is demurrage per day?

It depends on the tariff or contract, the container type and how many days have already been charged, because rates often rise in tiers. Read the rate from the rule that governs the shipment.

How do I calculate demurrage and detention together?

Calculate each on its own clock, demurrage until gate-out and detention from gate-out until empty return, then add them. If the contract has a combined clock, count one shared free-time allowance across both.

Can I use this to check a demurrage invoice?

Yes. Rebuild the charge from the contract and the shipment dates, then compare it with the invoice line by line before you approve it.

Sources

  • US demurrage and detention invoice contents, 46 CFR 541.6, for US trades in scope only. https://www.ecfr.gov/current/title-46/chapter-IV/subchapter-B/part-541/subpart-A/section-541.6
What is OTIF, and how do you measure it?
Guide
What is demurrage? A guide for cargo owners.
Guide
What is a freight audit?
Guide

See every free-time clock before it runs out.

Beacon works out free time and chargeable days for every container from your contract and the shipment events, and runs freight invoice audit and verification on each detention and demurrage invoice.

See D&D Control

Beacon Insider, once a month.

Freight rates, port congestion and carrier performance, in one short email.