Skip to content

Main content

Coupon Basket Minimum Margin Tool

Compare a basket subtotal with an explicit inclusive coupon minimum, without applying exclusions or issuing a discount.

Loading tool…

Description

Subtract minimumSubtotal from nonnegative basketSubtotal for margin and compare inclusively for eligible.

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.

Subtract minimumSubtotal from nonnegative basketSubtotal for margin and compare inclusively for eligible.

When to use this tool

Use Coupon Basket Minimum Margin when you need a transparent promotional price or eligibility term.

How to use the tool and how it works

  1. Enter basketSubtotal, minimumSubtotal. 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 margin, eligible. Inspect eligible before interpreting the associated values.

Subtract minimumSubtotal from nonnegative basketSubtotal for margin and compare inclusively for eligible.1

Input fieldMeaning and unitsAccepted input
basketSubtotalBasket SubtotalRequired. Finite number; minimum 0.
minimumSubtotalMinimum SubtotalRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
marginSigned allowance remaining under the subtraction order above.Required. Finite number.
eligibleEligibleRequired. Boolean.
json
{
  "input": {
    "basketSubtotal": 55,
    "minimumSubtotal": 50
  },
  "output": {
    "margin": 5,
    "eligible": true
  }
}

Limitations and assumptions

  • This checks the supplied subtotal rule only; coupon validity, qualifying items, discounts, taxes, and actual offer terms are not 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

Check actual offer terms, item eligibility, taxes, and monetary rounding before applying a computed price.

References

  1. Calculation and input contract: marketing/coupon-basket-minimum-margin — tool.io

Similar or alternative tools