Calculation guide
Enter port storage days and off-terminal equipment days under the carrier’s counting convention.
Inputs
Days inside terminal
Example entry 7. Allowed range 0 to 10000. Use whole numbers.
Free terminal days
Example entry 5. Allowed range 0 to 10000. Use whole numbers.
Demurrage per billable day
Example entry 100 (in the selected currency).
Days outside terminal
Example entry 5. Allowed range 0 to 10000. Use whole numbers.
Free outside days
Example entry 4. Allowed range 0 to 10000. Use whole numbers.
Detention per billable day
Example entry 75 (in the selected currency).
Worked example
| Input | Value |
|---|---|
| Days inside terminal | 7 |
| Free terminal days | 5 |
| Demurrage per billable day | 100 |
| Days outside terminal | 5 |
| Free outside days | 4 |
| Detention per billable day | 75 |
| Result | Value |
|---|---|
| Total time charges | 275 |
| Demurrage | 200 |
| Detention | 75 |
Calculation steps
Total time charges = ((max(0, (Days inside terminal − Free terminal days)) × Demurrage per billable day) + (max(0, (Days outside terminal − Free outside days)) × Detention per billable day))
((max(0, (7 − 5)) × 100) + (max(0, (5 − 4)) × 75)) = 275
Demurrage = (max(0, (Days inside terminal − Free terminal days)) × Demurrage per billable day)
(max(0, (7 − 5)) × 100) = 200
Detention = (max(0, (Days outside terminal − Free outside days)) × Detention per billable day)
(max(0, (5 − 4)) × 75) = 75
How each input affects this example
Each row starts from the worked example and changes one input.
| Input | Original input | New input | Affected result | Original result | New result |
|---|---|---|---|---|---|
| Days inside terminal | 7 | 8 | Total time charges | 275 | 375 |
| Free terminal days | 5 | 6 | Total time charges | 275 | 175 |
| Demurrage per billable day | 100 | 110 | Total time charges | 275 | 295 |
| Days outside terminal | 5 | 6 | Total time charges | 275 | 350 |
| Free outside days | 4 | 5 | Total time charges | 275 | 200 |
| Detention per billable day | 75 | 83 | Total time charges | 275 | 283 |
