Description
Return exact benign-inventory balance and residual.
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 exact benign-inventory balance and residual.
When to use this tool
Use Benign Inventory Balance Term when checking the stated benign biosecurity record, inventory, support or authorization convention.
How to use the tool and how it works
- Enter initial, received, removed, observed. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read expectedDecimal, residualDecimal. Use the output convention below.
Return exact benign-inventory balance and residual. Require nonnegative whole initial/received/removed/observed; expectedDecimal = initial+received-removed, residualDecimal = observed-expected using exact integer intermediates.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| initial | Initial | Required. Safe integer; minimum 0. |
| received | Received | Required. Safe integer; minimum 0. |
| removed | Removed | Required. Safe integer; minimum 0. |
| observed | Observed | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| expectedDecimal | Exact signed inventory balance as decimal integer text; negative balances are retained. | Required. Text; maximum UTF-16 length 8192. |
| residualDecimal | Residual Decimal | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"initial": 100,
"received": 20,
"removed": 30,
"observed": 88
},
"output": {
"expectedDecimal": "90",
"residualDecimal": "-2"
}
} Limitations and assumptions
- Expected stock may be negative because removals are not constrained by availability; no physical inventory or safe custody is verified.
- 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
Similar or alternative tools
- Biosecurity Benign Delivery Receipt Count Gap
Return delivery in-transit and usable-received counts.
- Biosecurity Visitor Returned Badge Balance
Return visitor badge-return gaps and invalidation bounds.