Description
Include the lower bound and apply the selected inclusive or strict upper bound.
Eligibility windows and numeric limits use explicit endpoints. A supplied age band, pass duration, opening interval, or allowance may include one boundary and exclude another; the implemented comparison determines that narrow result.
Include the lower bound and apply the selected inclusive or strict upper bound.
When to use this tool
Use Ticket Age Band Boundary Policy when you need to apply a supplied travel-service window or allowance consistently.
How to use the tool and how it works
- Enter ageYears, lowerAge, upperAge, upperInclusive. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read inBand. Inspect inBand before interpreting the associated values.
Require nonnegative ageYears and ordered nonnegative age bounds. Include the lower bound and apply the selected inclusive or strict upper bound.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| ageYears | Age Years | Required. Finite number; minimum 0. |
| lowerAge | Lower Age | Required. Finite number; minimum 0. |
| upperAge | Upper Age | Required. Finite number. |
| upperInclusive | Upper Inclusive | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| inBand | In Band | Required. Boolean. |
{
"input": {
"ageYears": 12,
"lowerAge": 6,
"upperAge": 12,
"upperInclusive": false
},
"output": {
"inBand": false
}
} Limitations and assumptions
- Fractional ages are allowed; actual ticket rules, age-verification documents, and birth-date calculations are not supplied.
- 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
Check the full provider policy and any exceptions that are not represented by the input fields.
References
Similar or alternative tools
- Museum Ticket Validity Window
Parse ordered validFromDate and validThroughDate and the visitDate as real Gregorian date strings.
- Us Census Enumeration Age Band Label
Display the range and test inclusive membership at both ends.