Description
Return observed union, unallocated remainder after explicit missing, and observed/period coverage.
Research schedules and activity records use numeric intervals, pauses, and overlap conventions. The same endpoints can produce different summaries depending on whether simultaneous activities are counted once or separately.
Return observed union, unallocated remainder after explicit missing, and observed/period coverage.
When to use this tool
Use Caregiver Reported Night Day Duration when you need a time-budget or interval calculation in geriatric research records.
How to use the tool and how it works
- Enter dayHours, nightHours, overlappingHours, missingHours, periodHours. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read observedHours, unallocatedHours, coverage. Use the output convention below.
Require positive periodHours and compatible nonnegative day, night, overlap, and missing hours whose union plus missing fits the period. Return observed union, unallocated remainder after explicit missing, and observed/period coverage.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| dayHours | Day Hours | Required. Finite number; minimum 0. |
| nightHours | Night Hours | Required. Finite number; minimum 0. |
| overlappingHours | Overlapping Hours | Required. Finite number; minimum 0. |
| missingHours | Missing Hours | Required. Finite number; minimum 0. |
| periodHours | Period Hours | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| observedHours | Observed Hours | Required. Finite number. |
| unallocatedHours | Unallocated Hours | Required. Finite number. |
| coverage | Coverage | Required. Finite number. |
{
"input": {
"dayHours": 10,
"nightHours": 8,
"overlappingHours": 1,
"missingHours": 2,
"periodHours": 24
},
"output": {
"observedHours": 17,
"unallocatedHours": 5,
"coverage": 0.7083333333333334
}
} Limitations and assumptions
- Day and night are supplied categories and overlap is not detected; no clinical observation, sleep assessment, caregiver reliability, or care quality is established.
- 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 the full schedule and source timing convention before aggregation. Use an appropriate observational or clinical assessment for questions that duration arithmetic cannot answer.
References
Similar or alternative tools
- Caregiver Handoff Coverage One Gap
Return overlap, nonnegative separation between intervals as uncoveredGap, and summed durations minus overlap as coveredDuration.
- Caregiver Support Interval Overlap
Require ordered support intervals and return their nonnegative overlap length.