Description
Sum active time and the active time marked complete; divide supported by all active time.
Time-window accounting separates gross duration, overlap, pauses, and eligible exposure. A fraction is interpretable only when its numerator and denominator use compatible intervals and units.
Sum active time and the active time marked complete; divide supported by all active time.
When to use this tool
Use Collection Pause Support Share when you need to reconcile explicit durations or interval support.
How to use the tool and how it works
- Enter collectionDurations, pauseDurations, complete. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read grossDuration, activeDuration, supportedActiveDuration, share, defined. Inspect defined before interpreting the associated values.
Require aligned duration, pause, and complete arrays with each pause between zero and its duration. Sum active time and the active time marked complete; divide supported by all active time.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| collectionDurations | Collection Durations | Required. Array of finite number; maximum items 256. |
| pauseDurations | Pause Durations | Required. Array of finite number; maximum items 256. |
| complete | Complete | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| grossDuration | Gross Duration | Required. Finite number. |
| activeDuration | Active Duration | Required. Finite number. |
| supportedActiveDuration | Supported Active Duration | Required. Finite number. |
| share | Dimensionless fraction under the stated denominator policy. | Required. Finite number. |
| defined | Whether the accompanying numeric result has an available denominator or required inputs. | Required. Boolean. |
{
"input": {
"collectionDurations": [
10,
10
],
"pauseDurations": [
2,
2
],
"complete": [
true,
false
]
},
"output": {
"grossDuration": 20,
"activeDuration": 16,
"supportedActiveDuration": 8,
"share": 0.5,
"defined": true
}
} Limitations and assumptions
- If total active time is zero, return share zero and defined false; completeness flags are caller assertions.
- 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
Use timestamped intervals to calculate overlap unions when summed durations and supplied corrections are insufficient.
References
Similar or alternative tools
- Dialysis Log Paused Active Time
Compute grossMinutes as end minus start.
- Urine Collection Window Fraction
Intersect the collection and target intervals.