# Sample usage

```
COUPON(100, QA{data})
```

# Syntax

```
COUPON(equation, coupon_question_data)
```

`equation`

- Formula from the main equation in which you want to apply the discount.`coupon_question_data`

- coupon data object.

# Notes

- You can obtain the coupon question data by referencing the question (e.g. QB) directly followed by the data reference in curly brackets (e.g.{data}) = QB{data}

# Examples

We have a formula for a “Total price”: QA+QB Total price result is: $100 We want to add a 10% off, so set up the coupon configuration.

The function of the “total price” now is:

```
COUPON(QA+QB,QB{data})
```

“Total price” now: $90