Skip to content

Main content

Referral Credit Refund Reversal

Apply an explicit credit reversal rate to a refunded purchase amount without choosing referral terms.

Loading tool…

Description

Calculate a supplied referral-credit reversal for a refunded purchase.

Campaign bookkeeping distinguishes actual records from supplied rules, discounts, retention assumptions and spending periods. Sequential discounts compound on changing bases, while an adstock update depends on a declared period and retention factor. A click flag or local score term does not establish consent, causal response or financial performance.

Calculate a supplied referral-credit reversal for a refunded purchase.

When to use this tool

Use Referral Credit Refund Reversal when you already have creditedAmount, refundedPurchaseAmount, suppliedCreditRate and need to calculate a supplied referral-credit reversal for a refunded purchase.

How to use the tool and how it works

  1. Enter creditedAmount, refundedPurchaseAmount, suppliedCreditRate. 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 reversedCredit, remainingCredit. Use the output convention below.

Require nonnegative credited/refunded amounts and creditRate; reversed=refund*rate, remaining=credited-reversed.1

Input fieldMeaning and unitsAccepted input
creditedAmountCredited AmountRequired. Finite number; minimum 0.
refundedPurchaseAmountRefunded Purchase AmountRequired. Finite number; minimum 0.
suppliedCreditRateSupplied Credit RateRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
reversedCreditReversed CreditRequired. Finite number.
remainingCreditRemaining CreditRequired. Finite number.
json
{
  "input": {
    "creditedAmount": 20,
    "refundedPurchaseAmount": 50,
    "suppliedCreditRate": 0.1
  },
  "output": {
    "reversedCredit": 5,
    "remainingCredit": 15
  }
}

Limitations and assumptions

  • Rate may exceed one and remaining credit may be negative; no referral policy, actual refund or contractual entitlement is verified.
  • 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

Review original campaign events, offer terms and financial records for actual charges and statuses. Fit and validate a complete model when estimating response or retention; one supplied rule, price delta or pacing term does not provide that evidence.

References

  1. Calculation and input contract: marketing/referral-credit-refund-reversal — tool.io

Similar or alternative tools