Description
Needed portions=ceil((attended+staff)*(1+reserveFraction)); margin=portions-needed.
Extension-service records track resources, attendance, feedback and permission assertions. Distinct people and repeated records have different denominators, and a complete record does not prove valid consent or a high-quality service. Names such as verified describe caller-supplied evidence flags.
Needed portions=ceil((attended+staff)*(1+reserveFraction)); margin=portions-needed.
When to use this tool
Use Field Day Catering Participant Count Gap when checking the stated extension-service record, participation or permission convention.
How to use the tool and how it works
- Enter registered, attended, staff, portions, reserveFraction. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read needed, margin. Use the output convention below.
Require whole nonnegative counts, attended<=registered and reserveFraction>=0. Needed portions=ceil((attended+staff)*(1+reserveFraction)); margin=portions-needed.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| registered | Registered | Required. Safe integer; minimum 0. |
| attended | Attended | Required. Safe integer; minimum 0. |
| staff | Staff | Required. Safe integer; minimum 0. |
| portions | Portions | Required. Safe integer; minimum 0. |
| reserveFraction | Reserve Fraction Unit: 1. | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| needed | Needed | Required. Safe integer. |
| margin | Margin | Required. Safe integer. |
{
"input": {
"registered": 100,
"attended": 80,
"staff": 10,
"portions": 110,
"reserveFraction": 0.1
},
"output": {
"needed": 100,
"margin": 10
}
} Limitations and assumptions
- Reserve is an added allowance, not a lost-stock fraction; this does not determine dietary needs, catering safety or actual attendance.
- 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 service and participant records and the applicable permission/organizational rules for actual use or reporting decisions.
References
Similar or alternative tools
- Field Day Attendance Repeat Count
Count distinct attendeeIds by exact string equality; repeatRecords equals list length minus distinct count.
- Extension Resource Pack Per Group Budget
Return floor((packs-reserved)/packsPerGroup) and the remainder.