Logistics Demurrage Detention
logistics_demurrage_detentionContainer demurrage or detention calculator: from the start date (discharge or gate-out), end date (gate-out or empty return), free days and the carrier's tiered daily rates you supply (e.g. 1-4:75,5-8:150,9+:250), returns chargeable days, the day-by-day tier split and the total per container and for all containers. Counts calendar days, start day included unless you say otherwise. Carrier tariffs are not looked up. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End date YYYY-MM-DD: gate-out full (demurrage) or empty return (detention) (required) | |
| rates | Yes | Tiers after free time, 'from-to:rate' comma separated, last open-ended with '+', e.g. 1-4:75,5-8:150,9+:250 (required) | |
| start | Yes | Start date YYYY-MM-DD: discharge (demurrage) or gate-out full (detention) (required) | |
| currency | No | Currency label for the output, default USD | |
| freeDays | Yes | Free days granted, 0-60 (required) | |
| containers | No | Number of containers, default 1 | |
| countStartDay | No | true (default) counts the start date as day 1; false starts on the next day |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tiers | No | ||
| total | No | ||
| currency | No | ||
| daysUsed | No | ||
| freeDays | No | ||
| containers | No | ||
| freeTimeEnds | No | ||
| perContainer | No | ||
| chargeableDays | No |