Skip to content

Main content

Referral Available Window Share Tool

Calculate referral available window share from explicit caller-supplied inputs.

Loading tool…

Description

Intersect available and requested windows, return availableOverlap and its share of the requested window, and calculate durationSlack=overlap-requiredDuration.

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 available and requested windows, return availableOverlap and its share of the requested window, and calculate durationSlack=overlap-requiredDuration.

When to use this tool

Use Referral Available Window Share when you need one explicit service-record, clock, consent-annotation, or resource-allocation check.

How to use the tool and how it works

  1. Enter windowStart, windowEnd, availableStart, availableEnd, requiredDuration. 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 availableOverlap, share, durationSlack. Use the output convention below.

Intersect available and requested windows, return availableOverlap and its share of the requested window, and calculate durationSlack=overlap-requiredDuration. Require a positive requested window and nonnegative required duration.1

Input fieldMeaning and unitsAccepted input
windowStartWindow StartRequired. Finite number.
windowEndWindow EndRequired. Finite number.
availableStartAvailable StartRequired. Finite number.
availableEndAvailable EndRequired. Finite number.
requiredDurationRequired DurationRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
availableOverlapAvailable OverlapRequired. Finite number.
shareDimensionless fraction using the stated denominator; not a percentage numeral.Required. Finite number.
durationSlackDuration SlackRequired. Finite number.
json
{
  "input": {
    "windowStart": 0,
    "windowEnd": 10,
    "availableStart": 4,
    "availableEnd": 12,
    "requiredDuration": 3
  },
  "output": {
    "availableOverlap": 6,
    "share": 0.6,
    "durationSlack": 3
  }
}

Limitations and assumptions

  • The overlap is continuous time, not a verified service booking. A nonnegative slack does not establish staffing, accessibility, case suitability, consent, or a care recommendation.
  • 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

  1. Calculation and input contract: social-work/referral-available-window-share — tool.io

Similar or alternative tools