Description
Calculate the packaging-unit residual after packed, rejected and sampled quantities.
Manufacturing quality records connect batch and material IDs, controlled versions, signatures, counts and calendar references. A status label or residual can expose a record convention while actual release, personnel qualification and compliance require verified evidence and authorized procedures. A recorded release label does not itself release anything.
Calculate the packaging-unit residual after packed, rejected and sampled quantities.
When to use this tool
Use GMP Packaging Count Residual when checking the stated manufacturing record, count or calendar-margin convention.
How to use the tool and how it works
- Enter inputUnits, packedUnits, rejectedUnits, sampledUnits. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read unaccountedUnits. Use the output convention below.
Require nonnegative whole input, packed, rejected and sampled unit counts. Subtract all three outputs from input using exact integer intermediates, then return numeric unaccountedUnits.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| inputUnits | Input Units | Required. Safe integer; minimum 0. |
| packedUnits | Packed Units | Required. Safe integer; minimum 0. |
| rejectedUnits | Rejected Units | Required. Safe integer; minimum 0. |
| sampledUnits | Sampled Units | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| unaccountedUnits | Input minus packed, rejected and sampled; signed numeric export after exact integer intermediates. | Required. Safe integer. |
{
"input": {
"inputUnits": 1000,
"packedUnits": 970,
"rejectedUnits": 20,
"sampledUnits": 5
},
"output": {
"unaccountedUnits": 5
}
} Limitations and assumptions
- Negative residuals are retained; categories and batch records are not independently verified, and output is not arbitrary-precision integer text.
- 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 original controlled records, applicable quality requirements and qualified authorized personnel for actual material, equipment or batch decisions.
References
Similar or alternative tools
- GMP Label Issue Minus Return
Subtract returned manufacturing labels from the number issued.
- Batch Line Signoff Count Gap Tool
Compare explicit batch-record signoff counts without certifying GMP compliance.