Description
Validate suppliedEligibleDates as real YYYY-MM-DD dates, count distinct strings for availableDays, and subtract requiredWorkingDays for gap.
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.
Validate suppliedEligibleDates as real YYYY-MM-DD dates, count distinct strings for availableDays, and subtract requiredWorkingDays for gap.
When to use this tool
Use Settlement Working Day Gap when you need one transparent cross-border cost or timing component.
How to use the tool and how it works
- Enter requiredWorkingDays, suppliedEligibleDates. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read availableDays, gap. Use the output convention below.
Validate suppliedEligibleDates as real YYYY-MM-DD dates, count distinct strings for availableDays, and subtract requiredWorkingDays for gap.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| requiredWorkingDays | Required Working Days | Required. Safe integer; minimum 0. |
| suppliedEligibleDates | Supplied Eligible Dates | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| availableDays | Available Days | Required. Safe integer. |
| gap | Signed difference under the stated subtraction order. | Required. Safe integer. |
{
"input": {
"requiredWorkingDays": 3,
"suppliedEligibleDates": [
"2026-01-05",
"2026-01-06"
]
},
"output": {
"availableDays": 2,
"gap": -1
}
} Limitations and assumptions
- Dates are not checked against a settlement window or holiday calendar; the caller is responsible for their eligibility.
- 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
- Credit Presentation Deadline Day Basis
Choose suppliedBusinessDays or elapsedCalendarDays for countedDays according to useBusinessBasis and subtract from allowedDays for margin.
- Letter Of Credit Expiry Presentation Gap
Subtract shipmentDay from presentationDay and presentationDay from expiryDay.