Skip to content

Main content

Sample Time Exposure Window Gap Tool

Calculate sample time exposure window gap from explicit caller-supplied inputs.

Loading tool…

Description

Return distance to a closed sampling window and signed start offset.

Biomonitoring records connect specimens, analytical methods, observation durations and exposure windows. Literal matches and coverage shares describe supplied records, while specimen stability, actual exposure and the suitability of a health interpretation require independent measurement and professional assessment.

Return distance to a closed sampling window and signed start offset.

When to use this tool

Use Sample Time Exposure Window Gap when checking the stated specimen record, timing or monitoring-support convention.

How to use the tool and how it works

  1. Enter sampleTime, windowStart, windowEnd. 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 distanceToWindow, signedFromStart, inside. Inspect inside before interpreting the associated values.

Return distance to a closed sampling window and signed start offset. Require windowStart <= windowEnd; inside includes both ends, distance is zero inside and the nearest boundary gap otherwise.1

Input fieldMeaning and unitsAccepted input
sampleTimeSample TimeRequired. Finite number.
windowStartWindow StartRequired. Finite number.
windowEndWindow EndRequired. Finite number.
Output fieldInterpretationReturned shape
distanceToWindowDistance To WindowRequired. Finite number.
signedFromStartSigned From StartRequired. Finite number.
insideInsideRequired. Boolean.
json
{
  "input": {
    "sampleTime": 12,
    "windowStart": 0,
    "windowEnd": 10
  },
  "output": {
    "distanceToWindow": 2,
    "signedFromStart": 12,
    "inside": false
  }
}

Limitations and assumptions

  • The window is supplied rather than validated for an exposure or health interpretation.
  • 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

Inspect verified collection and laboratory records and use an appropriate exposure/measurement analysis; seek qualified professional interpretation for health-related decisions.

References

  1. Calculation and input contract: biomonitoring/sample-time-exposure-window-gap — tool.io

Similar or alternative tools