Description
Subtract scheduled use and reserve for remaining, then required for margin and an inclusive sufficient flag.
Laboratory balances track material amounts, container counts, and storage positions. A balance model requires compatible units and a clear accounting boundary; arithmetic agreement is not evidence that the physical inventory or study record is complete.
Subtract scheduled use and reserve for remaining, then required for margin and an inclusive sufficient flag.
When to use this tool
Use GLP Retained Sample Minimum Caller Gap when you need a laboratory amount, inventory, or storage-budget calculation.
How to use the tool and how it works
- Enter available, required, scheduledUse, reserve. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read remaining, margin, sufficient. Inspect sufficient before interpreting the associated values.
Require nonnegative available, required, scheduledUse, and reserve. Subtract scheduled use and reserve for remaining, then required for margin and an inclusive sufficient flag.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| available | Available | Required. Finite number; minimum 0. |
| required | Required | Required. Finite number; minimum 0. |
| scheduledUse | Scheduled Use | Required. Finite number; minimum 0. |
| reserve | Reserve | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| remaining | Remaining | Required. Finite number. |
| margin | Signed allowance under the subtraction convention above. | Required. Finite number. |
| sufficient | Sufficient | Required. Boolean. |
{
"input": {
"available": 100,
"required": 40,
"scheduledUse": 20,
"reserve": 10
},
"output": {
"remaining": 70,
"margin": 30,
"sufficient": true
}
} Limitations and assumptions
- All amounts share units and remaining may be negative; required and reserve are supplied rather than regulatory minima or proof of adequate retained sample quality.
- 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
Reconcile the actual inventory and study records using the laboratory's controlled method. Physical inspection and traceable measurements may be needed when record arithmetic leaves uncertainty.
References
Similar or alternative tools
- GLP Reagent Preparation Volume Reconcile
Sum nonnegative componentVolumes, subtract contractionVolume for expectedFinal, compare finalVolume for residual, and subtract withdrawn within finalVolume for remaining.
- GLP Sample Lot Parent Token
Test lotId in knownLotIds and flag any prior record linking the same sampleId to a different lot, then return a lot/sample JSON-array key.