Skip to content

Main content

Biosecurity Equipment Loan Expiry Margin Tool

Calculate biosecurity equipment loan expiry margin from explicit caller-supplied inputs.

Loading tool…

Description

Return equipment-loan age and nominal/grace margins.

Biosecurity administration records training assertions, custody, access purposes, inventories and document handling. Local counts, time checks and permission predicates describe supplied metadata; they do not authenticate people or items, enforce access or establish actual protective conditions.

Return equipment-loan age and nominal/grace margins.

When to use this tool

Use Biosecurity Equipment Loan Expiry Margin when checking the stated benign biosecurity record, inventory, support or authorization convention.

How to use the tool and how it works

  1. Enter loanDay, returnDue, actualDay, graceDays. 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 loanAge, nominalMargin, graceMargin, overdue. Inspect overdue before interpreting the associated values.

Return equipment-loan age and nominal/grace margins. Require nonnegative whole graceDays, due >= loan and actualDay >= loan; age = actual-loan, nominalMargin = due-actual, graceMargin adds grace, overdue tests strict actual > due+grace.1

Input fieldMeaning and unitsAccepted input
loanDayLoan DayRequired. Safe integer.
returnDueReturn DueRequired. Safe integer.
actualDayActual DayRequired. Safe integer.
graceDaysGrace DaysRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
loanAgeLoan AgeRequired. Safe integer.
nominalMarginNominal MarginRequired. Safe integer.
graceMarginGrace MarginRequired. Safe integer.
overdueOverdueRequired. Boolean.
json
{
  "input": {
    "loanDay": 100,
    "returnDue": 120,
    "actualDay": 123,
    "graceDays": 5
  },
  "output": {
    "loanAge": 23,
    "nominalMargin": -3,
    "graceMargin": 2,
    "overdue": false
  }
}

Limitations and assumptions

  • Grace and due rules are supplied; no ownership, valid loan, safe equipment condition or legal permission 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

Verify actual records, permissions and conditions through the responsible organization's procedures; use qualified risk assessment and appropriate professional oversight for practical decisions.

References

  1. Calculation and input contract: biosecurity/biosecurity-equipment-loan-expiry-margin — tool.io

Similar or alternative tools