# How to create flexible discounts in the calculator formula

**URL:** <https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749>\
**Category:** General Questions\
**Tags:** calculator\
**Created:** [April 5, 2025, 9:01pm UTC](https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749 "2025-04-05T21:01:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user16663](https://avatars.discourse-cdn.com/v4/letter/u/b4bc9f/32.png) [@user16663](https://community.elfsight.com/u/user16663)\
**Post date:** [April 5, 2025, 9:01pm UTC](https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749/1 "2025-04-05T21:01:45Z")

</div>

**Not sure how to have the calculator apply these discounts:**

If two values are selected, a discount of 10% is applied. If three values are selected, a 15% discount is applied. If four or more values are selected, a 18% discount is applied.

**I used the Ai calculator generator and it didn’t work:**

IF(SUM({{a1b2c3d4}}) EQUAL 2, {{d5e6f7g8}} \* 0.1, IF(SUM({{a1b2c3d4}}) EQUAL 3, {{d5e6f7g8}} \* 0.15, IF(SUM({{a1b2c3d4}}) \>= 4, {{d5e6f7g8}} \* 0.18, 0)))

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 7, 2025, 3:46pm UTC](https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749/3 "2025-04-07T15:46:01Z")

</div>

Hi there, @user16663 and welcome to the Community 👋

I’ve passed your request on to the dev team and will let you know once the formula is ready 🙂

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 9, 2025, 1:46pm UTC](https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749/4 "2025-04-09T13:46:59Z")

</div>

Hi there, @user16663 👋

We’ve created this formula and saved it in your widget:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/b/1/b1ef06e6e5ddda493702bda7fa239990c81b3e3a.png)

  

Please check it out and let me know if you like how it works 🙂

---

<div class="post-metadata">

**Author:** ![user16663](https://avatars.discourse-cdn.com/v4/letter/u/b4bc9f/32.png) [@user16663](https://community.elfsight.com/u/user16663)\
**Post date:** [April 9, 2025, 9:01pm UTC](https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749/6 "2025-04-09T21:01:31Z")

</div>

Thanks this works great! Love your site.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [April 10, 2025, 10:50am UTC](https://community.elfsight.com/t/how-to-create-flexible-discounts-in-the-calculator-formula/111749/7 "2025-04-10T10:50:19Z")

</div>

Perfect, thank you so much for the feedback 😉

In the meantime, I’d like to remind you about our Giveaway, where you can win **3 FREE** months for your subscription.

Check the details and join in - [April Giveaway: Celebrate 80K Members with Us & Win 3 FREE Months! 😍](https://community.elfsight.com/t/april-giveaway-celebrate-80k-members-with-us-win-3-free-months/109962)
