Skip to content

Main content

Lead Reentry Period Gap Tool

Calculate lead reentry period gap from explicit caller-supplied inputs.

Loading tool…

Description

Subtract exitPeriod from reentryPeriod with exact integers for gapDecimal.

A cumulative counter can increase, wrap, or restart. The difference between two readings is meaningful only under an explicit rollover or reset model and compatible time units.

Subtract exitPeriod from reentryPeriod with exact integers for gapDecimal.

When to use this tool

Use Lead Reentry Period Gap when you need a supplied counter difference or rate convention.

How to use the tool and how it works

  1. Enter exitPeriod, reentryPeriod, periodsPerCycle. 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 gapDecimal, sameCycle. Inspect sameCycle before interpreting the associated values.

Subtract exitPeriod from reentryPeriod with exact integers for gapDecimal. Compare their integer quotients by periodsPerCycle for sameCycle.1

Input fieldMeaning and unitsAccepted input
exitPeriodExit PeriodRequired. Safe integer; minimum 0.
reentryPeriodReentry PeriodRequired. Safe integer; minimum 0.
periodsPerCyclePeriods Per CycleRequired. Safe integer; minimum 1.
Output fieldInterpretationReturned shape
gapDecimalGap DecimalRequired. Text; maximum UTF-16 length 8192.
sameCycleSame CycleRequired. Boolean.
json
{
  "input": {
    "exitPeriod": 5,
    "reentryPeriod": 8,
    "periodsPerCycle": 12
  },
  "output": {
    "gapDecimal": "3",
    "sameCycle": true
  }
}

Limitations and assumptions

  • Periods are nonnegative and cycles start at zero; negative gaps are allowed and calendar cycle conventions are not inferred.
  • 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 reset events, wrap epochs, and monotonic timestamps to resolve ambiguous counter histories.

References

  1. Calculation and input contract: marketing/lead-reentry-period-gap — tool.io

Similar or alternative tools