Description
Compare firstEnd with secondStart for touches, require both boundary flags for sharedBoundary at equality, and return secondStart-firstEnd as gap.
Health-benefit calculations depend on explicit eligibility flags, coverage periods, caps, exclusions, and payment order. Applying supplied arithmetic is separate from determining actual insurance terms or a legally payable claim.
Compare firstEnd with secondStart for touches, require both boundary flags for sharedBoundary at equality, and return secondStart-firstEnd as gap.
When to use this tool
Use Insurance Period Touch Token when you need one transparent benefit or reimbursement component under a declared rule.
How to use the tool and how it works
- Enter firstEnd, secondStart, firstEndIncluded, secondStartIncluded. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read touches, sharedBoundary, gap. Inspect touches, sharedBoundary before interpreting the associated values.
Compare firstEnd with secondStart for touches, require both boundary flags for sharedBoundary at equality, and return secondStart-firstEnd as gap.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstEnd | First End | Required. Finite number. |
| secondStart | Second Start | Required. Finite number. |
| firstEndIncluded | First End Included | Required. Boolean. |
| secondStartIncluded | Second Start Included | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| touches | Touches | Required. Boolean. |
| sharedBoundary | Shared Boundary | Required. Boolean. |
| gap | Signed difference under the stated subtraction order. | Required. Finite number. |
{
"input": {
"firstEnd": 10,
"secondStart": 10,
"firstEndIncluded": true,
"secondStartIncluded": true
},
"output": {
"touches": true,
"sharedBoundary": true,
"gap": 0
}
} Limitations and assumptions
- These are supplied interval coordinates; a negative gap indicates overlap of endpoints but no full coverage validation, insurer terms, or entitlement is determined.
- 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
Confirm policy terms, verified enrollment, claim eligibility, and appropriate accounting or legal interpretation before relying on a payment result.
References
Similar or alternative tools
- Health Benefit Coverage Calendar Proration
Calculate overlapping duration, divide by period duration, and multiply fullBenefit by that fraction.
- Health Service Waiting Time Clock Pause
Subtract their union for counted days and divide pausedDays by full elapsed time.