Description
Intersect a positive-length need interval with an ordered opening interval and divide coveredDuration by needEnd-needStart for share.
Support-service records distinguish appointments, action times, review windows, consent annotations, and allocation of shared resources. A supplied flag or time margin can support bookkeeping while case evidence, professional judgment, and applicable obligations remain separate.
Intersect a positive-length need interval with an ordered opening interval and divide coveredDuration by needEnd-needStart for share.
When to use this tool
Use Resource Opening Coverage Fraction when you need one explicit service-record, clock, consent-annotation, or resource-allocation check.
How to use the tool and how it works
- Enter needStart, needEnd, openingStart, openingEnd. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read coveredDuration, share. Use the output convention below.
Intersect a positive-length need interval with an ordered opening interval and divide coveredDuration by needEnd-needStart for share.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| needStart | Need Start | Required. Finite number. |
| needEnd | Need End | Required. Finite number. |
| openingStart | Opening Start | Required. Finite number. |
| openingEnd | Opening End | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| coveredDuration | Covered Duration | Required. Finite number. |
| share | Dimensionless fraction using the stated denominator; not a percentage numeral. | Required. Finite number. |
{
"input": {
"needStart": 10,
"needEnd": 20,
"openingStart": 15,
"openingEnd": 25
},
"output": {
"coveredDuration": 5,
"share": 0.5
}
} Limitations and assumptions
- The calculation uses continuous interval lengths without endpoint counting. A covered window does not establish an appointment, actual service access, suitability, accessibility, or case eligibility.
- The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
- 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. Signed zero is exported as zero.
Alternative or Complementary methods
Check source records, case context, and the applicable professional or legal requirements before using these flags or margins for a service decision.
References
Similar or alternative tools
- Care Hour Weekend Base Flag
Return countedHours=weekdayHours plus weekendHours only when includeWeekend.
- Client Goal Declined Item Token
Keep an explicitly declined goal separate from missing and answered records.