{"slug":"api-tradeenergy-api-workers-dev-api-logistics-demurrage-dete-26118d","title":"Container demurrage or detention calculator","host":"api.tradeenergy-api.workers.dev","method":"GET","resource":"https://api.tradeenergy-api.workers.dev/api/logistics/demurrage-detention","category":"other","description":"Container 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 fo","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":31,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:10","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:480","eip155:5042","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet","xrpl:0"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"containers":"2","currency":"USD","end":"2026-10-20","freeDays":"7","rates":"1-4:75,5-8:150,9+:250","start":"2026-10-01"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"containers":{"description":"Number of containers, default 1","type":"string"},"countStartDay":{"description":"true (default) counts the start date as day 1; false starts on the next day","type":"string"},"currency":{"description":"Currency label for the output, default USD","type":"string"},"end":{"description":"End date YYYY-MM-DD: gate-out full (demurrage) or empty return (detention) (required)","type":"string"},"freeDays":{"description":"Free days granted, 0-60 (required)","type":"string"},"rates":{"description":"Tiers after free time, 'from-to:rate' comma separated, last open-ended with '+', e.g. 1-4:75,5-8:150,9+:250 (required)","type":"string"},"start":{"description":"Start date YYYY-MM-DD: discharge (demurrage) or gate-out full (detention) (required)","type":"string"}},"required":["start","end","freeDays","rates"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":31,"error":null}],"description_full":"Container 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.","last_updated":"2026-10-23T23:19:51.054Z","schemes":["exact"]}