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
- Enter creditedAmount, refundedPurchaseAmount, suppliedCreditRate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read reversedCredit, remainingCredit. Use the output convention below.
Require nonnegative credited/refunded amounts and creditRate; reversed=refund*rate, remaining=credited-reversed.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| creditedAmount | Credited Amount | Required. Finite number; minimum 0. |
| refundedPurchaseAmount | Refunded Purchase Amount | Required. Finite number; minimum 0. |
| suppliedCreditRate | Supplied Credit Rate | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| reversedCredit | Reversed Credit | Required. Finite number. |
| remainingCredit | Remaining Credit | Required. Finite number. |
{
"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
Similar or alternative tools
- Promotion Sequential Discount Gap
Compare sequential percentage discounts with adding their fractions.
- Newsletter Click Unsubscribe Status Pair
Combine recorded click and unsubscribe flags into a status label.