Description
Multiply all factors (1 - discountFraction) for remainingFactor and multiply basePrice by that product for finalPrice.
Fixed and percentage discounts act differently and may produce different prices when their order changes. Threshold pricing also depends on whether a new rate applies to all units.
Multiply all factors (1 - discountFraction) for remainingFactor and multiply basePrice by that product for finalPrice.
When to use this tool
Use Offer Discount Stack Factor when you need a transparent promotional price or eligibility term.
How to use the tool and how it works
- Enter discountFractions, basePrice. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read remainingFactor, finalPrice. Use the output convention below.
Multiply all factors (1 - discountFraction) for remainingFactor and multiply basePrice by that product for finalPrice.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| discountFractions | Discount Fractions | Required. Array of finite number; maximum items 256. |
| basePrice | Base Price | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| remainingFactor | Remaining Factor | Required. Finite number. |
| finalPrice | Final Price | Required. Finite number. |
{
"input": {
"discountFractions": [
0.2,
0.25
],
"basePrice": 100
},
"output": {
"remainingFactor": 0.6000000000000001,
"finalPrice": 60.00000000000001
}
} Limitations and assumptions
- An empty discount list leaves price unchanged; these are sequential percentage discounts, not an additive percentage or a complete checkout policy.
- 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
Check actual offer terms, item eligibility, taxes, and monetary rounding before applying a computed price.
References
Similar or alternative tools
- Coupon Stack Percent Fixed Order Gap
Compute fixed-then-percent and percent-then-fixed final prices, requiring fixedDiscount no greater than price.
- Promotion Price Uplift Factor
Divide nonnegative promotionPrice by positive referencePrice for priceFactor and return that ratio minus one as signedUplift.