Skip to content

Main content

Customer Repeat Purchase Gap Tool

Count calendar days between an ordered pair of customer purchases without inferring lifetime value.

Loading tool…

Description

Parse previousDate and repeatDate as real Gregorian dates, require repeat no earlier, and return the day difference.

Marketing records combine campaign dates, labels, attribution terms, and supplied counts. A local arithmetic or formatting result describes the stated record without proving campaign effectiveness or causal impact.

Parse previousDate and repeatDate as real Gregorian dates, require repeat no earlier, and return the day difference.

When to use this tool

Use Customer Repeat Purchase Gap when you need one campaign-record calculation or formatter under the stated convention.

How to use the tool and how it works

  1. Enter previousDate, repeatDate. 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 gapDays. Use the output convention below.

Parse previousDate and repeatDate as real Gregorian dates, require repeat no earlier, and return the day difference.1

Input fieldMeaning and unitsAccepted input
previousDatePrevious DateRequired. Text; maximum UTF-16 length 8192.
repeatDateRepeat DateRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
gapDaysGap DaysRequired. Safe integer.
json
{
  "input": {
    "previousDate": "2026-10-01",
    "repeatDate": "2026-10-15"
  },
  "output": {
    "gapDays": 14
  }
}

Limitations and assumptions

  • This compares supplied purchase dates without customer identity, returns, order validity, timezone, or causal retention analysis.
  • 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.

Alternative or Complementary methods

Review the complete measurement model, source data, and campaign terms before interpreting a performance result.

References

  1. Calculation and input contract: marketing/customer-repeat-purchase-gap — tool.io

Similar or alternative tools