# Create a quantity discount

> You can create a campaign where customers get a discount for every X amount of money they spend.

> For the complete documentation index, see [llms.txt](https://docs.talon.one/llms.txt).

Let's imagine that we are a furniture store, and we want to encourage our customers to buy
more products from us. To do this, we can offer them a $50 discount for every $500 value in
their cart. This way, a customer who is buying an $800 sofa might add a $200 end table to
their cart to get a $100 discount.

## Issue a discount for every X cart value

In a [standard campaign](/docs/product/campaigns/overview#standard-campaigns), let's
build a [rule](/docs/product/rules/overview.md) and name it `$50 discount for every $500 cart value`.
It has one condition and one effect.

### Condition

**Always trigger effects.**

### Effect

**Discount session total:**

- **Discount name** is `$50 discount for every $500 cart value`.
- **Discount value** is `ROUND_DOWN([Session.CartItemTotal] / 500) * 50`

  :::tip
  To display the [rounding](/docs/product/rules/create-and-manage-rules.md#use-rounding-in-a-condition-or-effect)
  options, in the **Discount value** field, click and drag to select the line of text
  `([Session.CartItemTotal] / 500)`.
  :::

## Round down discount values

We use `ROUND_DOWN` to ensure `[Session.CartItemTotal] / 500` is always rounded down to
a whole number. In our case, this whole number is the intended qualifying cart value. That
way, a customer buying an $800 sofa gets a $50 discount as intended:

`ROUND_DOWN(800 / 500) = 1`

`1 * 50 = 50`

In contrast, not rounding down the number means customers get a discount for any cart
value. For example, that same customer buying an $800 sofa gets an $80 discount:

`(800 / 500) = 1.6`

`1.6 * 50 = 80`

## Related pages

- [Create campaigns](/docs/product/campaigns/create-and-manage-campaigns.md)
- [Create and manage rules](/docs/product/rules/create-and-manage-rules.md)
