Skip to content
roadmark

Free tools Drayage and ocean

Container demurrage and per diem calculator

Demurrage is the daily charge for a container left at the terminal or rail ramp past its free days; per diem, or container detention, is the daily charge for keeping the box out past its free days before it comes back empty. Count every calendar day from the first free day to the day it leaves or returns, subtract the free days, and charge each remaining day at its tier's daily rate.

Demurrage and per diem calculator
Free time
Charge

Starts with container EGHU 604412 7 at the CN Brampton ramp, from the worked example.

Daily rates

Rate 1: every day after

Demurrage to payCA$1,100.005 days × CA$220.00
Thu, Sep 24
Last free day
9
Days used
5
Charged days

How demurrage and per diem are worked out

Both run on calendar days against a free-time allowance. Demurrage runs while the box sits at the terminal; per diem runs while it's out until it comes back.

Days used = out date − first free day + 1

Last free day = first free day + free days − 1

Charged days = days used − free days (never below zero)

Charge = the charged days in each rate step × that step's daily rate, added up

  • Calendar days count, weekends included, unless the tariff excludes weekends or holidays from free time.
  • The last free day is free: the first charged day is the day after.
  • Tiered rates step up after a set number of charged days; each day bills at the rate of the step it falls in.

Worked example

One import box at the ramp, one out on per diem.

Container EGHU 604412 7, a 40' high cube at the CN Brampton ramp, had 4 free days from Mon, Sep 21, so its last free day was Thu, Sep 24. Still at the ramp on Tue, Sep 29, it has used 9 days: 5 charged at $220.00 CAD a day, $1,100.00 CAD so far. Picked up on Fri, Oct 2, it would owe $1,760.00 CAD.

Container MSCU 482117 3 went out to the customer on Tue, Sep 22 with 5 free days, to Sat, Sep 26. Still out on Tue, Sep 29: 3 days of per diem at $150.00 CAD, $450.00 CAD.

Worked example: demurrage for container EGHU 604412 7
EGHU 604412 7 · CN Brampton ramp
First free dayMon, Sep 21
Last free dayThu, Sep 24
Still at the rampTue, Sep 29
Days used9
Charged days, at CA$220.005
Demurrage so far$1,100.00 CAD
If picked up Fri, Oct 2$1,760.00 CAD

The example box, day by day

Every calendar day from EGHU 604412 7's first free day to Friday, with the running total in Canadian dollars.
Day-by-day demurrage for container EGHU 604412 7
Day-by-day demurrage for container EGHU 604412 7
DateDayStatusChargeRunning total
Mon, Sep 211FreeCA$0.00CA$0.00
Tue, Sep 222FreeCA$0.00CA$0.00
Wed, Sep 233FreeCA$0.00CA$0.00
Thu, Sep 244FreeCA$0.00CA$0.00
Fri, Sep 255ChargedCA$220.00CA$220.00
Sat, Sep 266ChargedCA$220.00CA$440.00
Sun, Sep 277ChargedCA$220.00CA$660.00
Mon, Sep 288ChargedCA$220.00CA$880.00
Tue, Sep 299ChargedCA$220.00CA$1,100.00
Wed, Sep 3010ChargedCA$220.00CA$1,320.00
Thu, Oct 111ChargedCA$220.00CA$1,540.00
Fri, Oct 212ChargedCA$220.00CA$1,760.00

Free tool

Demurrage and per diem questions

What's the difference between demurrage and per diem?

Demurrage is charged while a loaded container stays at the terminal or ramp past its free time. Per diem, also called container detention, is charged while the container is out, with the trucker or the customer, past its free time until it comes back. One box can run up both.

When does free time start?

Terminal free time usually starts when the container is discharged or available for pickup; per diem free time starts when it's gated out. The carrier's or terminal's tariff says which, so enter the first day that counts.

Do weekends and holidays count?

Usually, because most tariffs count calendar days, but some exclude weekends or holidays from free time. This calculator counts calendar days; check the tariff for exclusions.

How do tiered demurrage rates work?

Many tariffs raise the daily rate after a set number of charged days. For example, at $150.00 a day for the first 4 days and $250.00 a day after that, 6 charged days cost 4 × $150.00 + 2 × $250.00 = $1,100.00.

Is the last free day charged?

No. A container picked up or returned on its last free day owes nothing; the first charged day is the day after.

Roadmark prices demurrage and per diem per container, every day past the last free day.

Every import on one clock, with the pickup drafted before the free time runs out.

See drayage

More free calculators

Each one shows its formula, a worked example and the rules it follows.
  • Chargeable weight calculator

    Actual against volumetric weight for an air shipment, at IATA's 6,000 cm³/kg or 166 in³/lb, line by line.

  • Freight class calculator

    Density in pounds per cubic foot for each pallet, and the class the NMFC's 13-sub density scale gives it.

  • Detention calculator

    What a truck's time at the dock past its free time comes to, on the invoice and on the driver's pay.

  • Fuel surcharge calculator

    Surcharge per mile from the diesel price, the base price and miles per gallon, the total for a trip and its share of the linehaul.

  • Cost per mile calculator

    A truck's fixed and per-mile costs over the miles it runs, as a cost per mile, and the margin at a rate per mile.

  • Cross-dock fee calculator

    A cross-dock visit's bill: handling per pallet in and out, the minimum, storage after the free time and extras, per pallet and against what you charge.

Let Roadmark work it out on every load.

Bring a week of your own loads. We'll show you the detention, weights, classes and free-time charges Roadmark would have worked out from your ELD times, dimensions and terminal dates.

  • Worked from your own loads, not a script
  • Every figure shown with where it came from
  • Runs beside the TMS you have today

Thirty minutes. No slides.

We use this to reply to your request. Privacy policy.