Skip to content

Main content

Collection Pause Support Share Tool

Calculate collection pause support share from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter collectionDurations, pauseDurations, complete. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
collectionDurationsCollection DurationsRequired. Array of finite number; maximum items 256.
pauseDurationsPause DurationsRequired. Array of finite number; maximum items 256.
completeCompleteRequired. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
grossDurationGross DurationRequired. Finite number.
activeDurationActive DurationRequired. Finite number.
supportedActiveDurationSupported Active DurationRequired. Finite number.
shareDimensionless fraction under the stated denominator policy.Required. Finite number.
definedWhether the accompanying numeric result has an available denominator or required inputs.Required. Boolean.
json
{
  "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

  1. Calculation and input contract: nephrology/collection-pause-support-share — tool.io

Similar or alternative tools