Free Demurrage & Detention Calculator
Estimate container demurrage and detention charges from free days, dates, number of containers and tiered daily rates. Compare the estimated exposure before a carrier or terminal invoice becomes a surprise.
1. Container & dates
2. Demurrage rates
After free time โ tiered daily rates
3. Detention rates
After free time โ tiered daily rates
Live D&D estimate
Free Demurrage & Detention Calculator for Importers and Exporters
Demurrage and detention are two of the easiest container charges to underestimate because the headline ocean freight rate does not tell you what happens when a box stays in use beyond its contractual free time. A shipment can have a reasonable freight quote and still generate a large additional bill if customs clearance, documentation, payment, trucking, inspection or terminal operations take longer than expected.
This free demurrage and detention calculator is designed for practical planning. Enter your container dates, free days, number of containers and the tiered daily rates stated in your carrier, booking or terminal terms. The tool then shows the chargeable days and estimated exposure. Carrier-specific calculators and current tariff references use the same core variables โ free time, dates or elapsed days, container count and daily rate tiers โ while warning that contract and location-specific terms can change the final charge.
What is demurrage?
Demurrage generally refers to charges that arise when the carrier's container remains inside the port, terminal or depot beyond the agreed free time. On an import, the relevant clock can be linked to the container's discharge or availability event depending on the carrier or contract. The amount normally increases once free time has been exhausted, often using daily or tiered daily rates.
The exact definition and start event matter. Some carrier tariffs may count the discharge day, while others may use a different convention. India carrier information shows that published terms can specify both a calendar-day basis and the discharge date as the starting point, while booking-specific terms can differ. Always use the governing booking confirmation, tariff or contract for the shipment you are actually handling.
What is detention?
Detention generally concerns the time a merchant retains the carrier's container outside the port, terminal or depot beyond the allowed free time. A typical import workflow is: container becomes available, the importer collects it, the empty container is returned, and detention exposure can arise if the container is retained beyond the agreed period.
Demurrage and detention can be combined under some carrier arrangements or calculated separately under others. That distinction is important because a combined clock can produce a different result from separate terminal and outside-terminal periods. Current carrier and independent calculator documentation explicitly distinguish combined and separate calculation modes.
Why free days matter so much
Free time is the period allowed before the charge begins under the applicable terms. A shipment with four free days and a shipment with ten free days can have radically different risk even when every other variable is identical. Free time can also differ by carrier, equipment type, movement type, trade lane, booking product and contractual arrangement.
That is why the calculator does not hard-code one โstandardโ number of free days. Instead, enter the number actually stated in your booking or carrier terms. Current Maersk India information, for example, shows carrier- and booking-specific free-time conditions and notes that spot terms can differ from standard tariffs.
How to calculate demurrage charges
A basic planning formula is chargeable days multiplied by the applicable daily rate, multiplied by the number of containers. With tiered rates, the chargeable days are split across rate brackets. For example, if six days are chargeable and the first three days are billed at one rate while the next three are billed at a higher rate, the total is calculated by applying each rate to its corresponding portion of the days.
This calculator supports three tiers so you can reproduce a simple stepped tariff. Tier 1 and tier 2 use the number of days entered for each bracket. Tier 3 becomes the final open-ended tier when its day field is set to zero. This is useful for testing real carrier tables without hiding the calculation behind an unexplained single rate.
Why a tiered demurrage rate can become expensive quickly
Demurrage and detention tariffs may escalate as the number of chargeable days increases. The first few days after free time can have one daily amount while later days have higher rates. That means a delay that initially seems manageable can become materially more expensive after crossing a tier boundary.
For importers, this creates a strong financial reason to coordinate documentation, customs clearance, transport and empty-container return well before the free-time deadline. For exporters, the risk can arise around cut-off dates, empty pick-up, container availability, loading, gate-in and documentation. A daily estimate can be especially helpful when deciding whether paying for faster operational handling is cheaper than accepting additional container charges.
Demurrage vs detention: simple example
Suppose a container becomes available on 1 September and the contract provides four free days. If the relevant clock counts the availability day according to the governing terms, the start and end conventions determine when chargeable days begin. If the container is then collected and remains outside the terminal until the empty is returned, a separate detention calculation may apply under the relevant tariff.
The important lesson is not to assume that every carrier uses exactly the same clock. The calculation should follow the contractual event and day-count convention. Current carrier information and specialist D&D calculators make this distinction explicit because start dates, end dates and included days can change the result.
Combined D&D vs separate demurrage and detention
In a combined model, the entire period from the governing start event to the final return event can be evaluated under a single free-time and rate structure. In a separate model, you can treat the terminal period and outside-terminal period as distinct stages. Which approach is correct is not determined by a calculator; it depends on the carrier, terminal and contractual terms.
This tool lets you switch between combined and separate modes for planning. If you use separate mode, enter discharge or availability, gate-out and empty-return dates and the calculator evaluates the two phases independently. Before using the result to challenge or approve an invoice, reproduce the exact tariff's counting rules rather than relying on the default structure.
Demurrage and detention in India
Indian import and export shipments can be particularly sensitive to free-time wording because carrier and terminal practices, customs procedures, ICD movements and local operational events can affect how quickly a container can be cleared and returned. Current India carrier guidance shows that free time, start dates, calendar-day conventions and spot-booking terms can vary, so an imported container should be checked against the exact current booking and tariff rather than a generic internet rule.
For this reason, Indian importers should enter the actual free days and per-diem rates from the relevant carrier or contract. A generic online amount should never be treated as a binding tariff. This calculator is useful precisely because it lets you replace the example values with the terms from your shipment.
What can trigger extra container days?
Common operational causes include customs examination, document mismatch, delayed payment, missing release instructions, inspection, port congestion, truck shortages, weekend or holiday closures, warehouse capacity problems and delayed empty return. Not every cause is treated the same way under every contract. Some periods may be excluded, while others may continue to count unless the carrier grants relief.
The result is why free-time planning should happen before the cargo arrives, not after a demurrage invoice appears. As soon as a shipment is booked, note the relevant free-time terms, expected discharge or availability date and the latest practical pickup or empty-return date. Then update the plan whenever the carrier changes the vessel, ETA or release status.
Use D&D together with landed-cost planning
Demurrage and detention are not always included in a standard landed-cost estimate because they are often conditional operational costs rather than fixed purchase costs. But when delays are plausible, the potential exposure can be important enough to include as a scenario. The Free Landed Cost Calculator can provide the base import-cost picture, while this D&D calculator can model a delay scenario separately.
Shipping mode can also influence the operational risk profile. Compare LCL and FCL with the Free LCL vs FCL Calculator, and use the Free Container Loading Calculator to plan container utilization. If you are comparing air cargo with sea cargo, the Free Air Freight Cost Calculator provides a separate air-freight estimate.
How to reduce demurrage and detention risk
Start with visibility. Keep the bill of lading, arrival notice, delivery order, customs documents, payment status, examination status, trucking plan and empty-return instructions in one workflow. Identify the last practical pickup date before free time expires and the latest empty-return date when detention is also relevant.
Then compare the cost of acceleration against the cost of delay. Paying for a faster truck, urgent documentation or additional operational support can sometimes be cheaper than several days of escalating per-diem charges. The right decision depends on the actual tariff, operational option and probability of delay, which is why a scenario calculator is useful before the deadline.
Do weekends and holidays count?
There is no universal yes-or-no answer. Some tariffs use calendar days, while others may specify working days or special rules around holidays and terminal operating schedules. Current carrier documentation demonstrates that day-count conventions can be carrier- and location-specific. Some independent calculators therefore include configurable weekend and holiday handling instead of assuming one global convention.
This version keeps date counting intentionally transparent rather than pretending to know every terminal's holiday calendar. Enter the resulting billable-day period according to the governing tariff, or use the tool's dates as a planning approximation and then confirm the exact count with the carrier.
How to use this calculator for invoice checking
When an invoice arrives, collect the relevant tariff or booking terms, confirm the free days, identify the start event, identify the end event, count the billable days using the contract's day basis, and apply the relevant tiered rate. Then compare the calculated amount with the invoice. The calculator can help you recreate the numeric side of that process.
However, invoice validation is more than arithmetic. Check the equipment type, container count, currency, rate effective date, booking terms, exemptions, holds, carrier-specific concessions and any special free-time arrangement. The final contractual document and carrier invoice remain the authoritative references.
Build a complete Today Adviser trade-cost workflow
For an importer, start with the supplier order using the Free MOQ & Order Value Calculator, estimate shipping with the logistics tools, model import duty using the Free Import Duty Calculator, calculate all-in cost with the Free Landed Cost Calculator, and use this calculator for a delay-cost scenario. For exporters, connect freight and selling-price calculations with the Free Export Profit Calculator and the Free Export Break-Even Price Calculator.
That workflow keeps fixed purchase costs, variable freight costs and conditional delay costs separate. The result is easier to understand and easier to negotiate because you can see which assumption is driving the total rather than hiding everything inside one estimated number.
Free Demurrage & Detention Calculator FAQs
What is the difference between demurrage and detention?
Demurrage generally relates to the carrier container remaining inside a terminal beyond free time. Detention generally relates to retaining the carrier container outside the terminal beyond the agreed free time. Some carrier products combine the two clocks, so check the applicable tariff.
How is demurrage calculated?
Typically, chargeable days after free time are multiplied by the applicable daily rate and container count. If the tariff is tiered, each group of days is priced at its corresponding rate.
How many free days are allowed?
It depends on the carrier, contract, booking, equipment, movement type and trade lane. Enter the free days stated in your actual booking or tariff rather than relying on a generic number.
Do weekends count for demurrage and detention?
It depends on the governing terms. Some tariffs use calendar days while others use different conventions. Check the carrier or terminal tariff for the shipment before treating a day as billable or non-billable.
Can this calculator use tiered carrier rates?
Yes. Enter up to three daily-rate tiers. Set the third tier's day field to zero to make its rate apply to all remaining chargeable days.
Can Indian importers use this calculator?
Yes. Enter the exact India carrier or booking terms for free time and per-diem rates. Carrier-specific rules can vary, so confirm the result against the current tariff and shipment documents.
Is this a carrier's official D&D invoice calculator?
No. It is an independent planning calculator using the dates, free time and rates you enter. The carrier, terminal and contract documents remain authoritative for the actual charge.
