Skip to content

Main content

Invoice Currency Conversion Date Gap Tool

Compare supplied day indices without selecting or fetching an exchange rate.

Loading tool…

Description

Return invoiceDay-minus-rateDay, futureDated, and withinSuppliedAge only for a nonfuture rate within the maximum.

Financial records use explicit dates, periods, entitlement flags and policy boundaries. Numeric membership or age checks can establish consistency with a supplied rule without determining legal rights or the actual contract's meaning.

Return invoiceDay-minus-rateDay, futureDated, and withinSuppliedAge only for a nonfuture rate within the maximum.

When to use this tool

Use Invoice Currency Conversion Date Gap when you need a financial timing or policy-record diagnostic.

How to use the tool and how it works

  1. Enter invoiceDay, rateDay, maxAgeDays. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read ageDays, futureDated, withinSuppliedAge. Inspect futureDated, withinSuppliedAge before interpreting the associated values.

Require nonnegative integer maxAgeDays. Return invoiceDay-minus-rateDay, futureDated, and withinSuppliedAge only for a nonfuture rate within the maximum.1

Input fieldMeaning and unitsAccepted input
invoiceDayInvoice DayRequired. Safe integer.
rateDayRate DayRequired. Safe integer.
maxAgeDaysMax Age DaysRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
ageDaysAge DaysRequired. Safe integer.
futureDatedFuture DatedRequired. Boolean.
withinSuppliedAgeWithin Supplied AgeRequired. Boolean.
json
{
  "input": {
    "invoiceDay": 100,
    "rateDay": 98,
    "maxAgeDays": 3
  },
  "output": {
    "ageDays": 2,
    "futureDated": false,
    "withinSuppliedAge": true
  }
}

Limitations and assumptions

  • These are numeric day coordinates, not parsed dates or business-day counts. No actual FX rate, policy approval or accounting validity is established.
  • 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 governing instrument or agreement and source records. Use the appropriate calendar, day-count and professional interpretation when actual entitlement or obligations are at issue.

References

  1. Calculation and input contract: finance/invoice-currency-conversion-date-gap — tool.io

Similar or alternative tools