Description
Count releaseDay - arrivalDay plus one when arrivalDayCounts.
Trade-finance arithmetic combines supplied fees, exchange factors, timing windows, and reporting bases. A local consistency result does not establish document compliance, contract rights, or bank acceptance.
Count releaseDay - arrivalDay plus one when arrivalDayCounts.
When to use this tool
Use Import Demurrage Free Day Gap when you need one transparent cross-border cost or timing component.
How to use the tool and how it works
- Enter arrivalDay, releaseDay, freeDays, chargePerDay, arrivalDayCounts. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read elapsedChargeDays, billableDays, cost. Use the output convention below.
Count releaseDay - arrivalDay plus one when arrivalDayCounts. Subtract freeDays with a zero floor and multiply billableDays by chargePerDay.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| arrivalDay | Arrival Day | Required. Safe integer. |
| releaseDay | Release Day | Required. Safe integer. |
| freeDays | Free Days | Required. Safe integer; minimum 0. |
| chargePerDay | Charge Per Day | Required. Finite number; minimum 0. |
| arrivalDayCounts | Arrival Day Counts | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| elapsedChargeDays | Elapsed Charge Days | Required. Safe integer. |
| billableDays | Billable Days | Required. Safe integer. |
| cost | Cost | Required. Finite number. |
{
"input": {
"arrivalDay": 10,
"releaseDay": 18,
"freeDays": 5,
"chargePerDay": 100,
"arrivalDayCounts": false
},
"output": {
"elapsedChargeDays": 8,
"billableDays": 3,
"cost": 300
}
} Limitations and assumptions
- The convention and rate are supplied; holidays, tariff schedules, contract exceptions, and actual demurrage liability are not determined.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Review the complete transaction, contract, bank terms, and applicable accounting policies before acting on a partial calculation.
References
Similar or alternative tools
- Settlement Working Day Gap
Validate suppliedEligibleDates as real YYYY-MM-DD dates, count distinct strings for availableDays, and subtract requiredWorkingDays for gap.
- Credit Presentation Deadline Day Basis
Choose suppliedBusinessDays or elapsedCalendarDays for countedDays according to useBusinessBasis and subtract from allowedDays for margin.