Description
Compute expected headspace and measured minus expected.
Food quantities depend on whether their basis is gross, edible, drained, wet, dry or solid mass. Changing the denominator can change a reported concentration or yield without changing the actual sample or proving anything about its safety.
Compute expected headspace and measured minus expected.
When to use this tool
Use Package Headspace Volume Residual when you need a stated food-mass, composition-basis or yield calculation.
How to use the tool and how it works
- Enter packageVolume, contentsVolume, measuredHeadspace, suppliedDisplacement. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read expectedHeadspace, residual. Use the output convention below.
Require nonnegative package, content, headspace and displacement volumes with content+displacement no greater than package. Compute expected headspace and measured minus expected.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| packageVolume | Package Volume | Required. Finite number. |
| contentsVolume | Contents Volume | Required. Finite number. |
| measuredHeadspace | Measured Headspace | Required. Finite number. |
| suppliedDisplacement | Supplied Displacement | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| expectedHeadspace | Expected Headspace | Required. Finite number. |
| residual | Residual | Required. Finite number. |
{
"input": {
"packageVolume": 100,
"contentsVolume": 70,
"measuredHeadspace": 25,
"suppliedDisplacement": 10
},
"output": {
"expectedHeadspace": 20,
"residual": 5
}
} Limitations and assumptions
- All volumes share units and displacements are additive by assumption. Seal integrity, package deformation and food safety are not inferred.
- 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 measured quantities and preparation records on a common basis. Use the appropriate laboratory, nutritional or safety assessment when arithmetic alone cannot establish the intended property.
References
Similar or alternative tools
- Package Fill Headspace Share
Return remaining volume and its fraction of capacity.
- Packaging Headspace Gas Fraction Term
Multiply each by the fraction for equivalent gas volume and partial pressure.