**christhouas**Hello,I am experiencing an issue with the calculation widget. When my customer fills out a form, but then decides to modify one of the options, instead replacing a calculation it simply adds the two together. I've tried to display the issue belowEx:

(Drop Down 1) option A = +1$

(Drop Down 2) option A = +2$

(drop Down 3) option A = +3$

Calculation Total = 6$

Now if I were to simply modify "Drop Down 2" and select say "Option B = +2$" which then hides "Drop down 3" and offers "Drop Down 4" with "option A = +4$". Instead of removing the +3$ and replacing it with the +4$ it adds both amounts in my total. Resulting in something like this:

Ex:

(Drop Down 1) option A = +1$

(Drop Down 2) option B = +2$

*Hidden* (drop Down 3) option A = +3$

(Drop Down 4) option B = +4$

Calculation Total = 10$

I'm sure it's an easy fix, and simply an error on my end.

Thanks for your help,

- JotForm Support
**Chriistian**Can you please provide us the form you are working on so that we can further check? I checked the forms in your account and it seems that there are no dropdown fields and form calculation widget on any forms.

I'll wait for your response.

Regards. **christhouas**Hey, the form I am working on is not published on my site, but here's a direct link:

https://form.jotform.com/70747652833261I have found an alternative solution by using "conditions", however it's a very long process and I am still implementing it.

Another question came up in the process though. Currently I am creating conditions that are sending values to my "calculation form"

ex:

If option A is equal to Z & option B is equal to X | If all rules selected | Insert 15 to calculation |

which my payment option then inserts into the "total" form. Again although it is a long process, it does work. What I am now wondering, what is the quickest way to add discounts via promo codes that a user has to enter.

Regards,

- JotForm Support
**Chriistian**Glad that you have found an alternative solution about the calculation on your form. Regarding on how to add discounts via promo codes, please refer to this guide on How To Add Coupon Code in the Payment Form.

Let us know if you need further assistance.

Regards. **christhouas**That method does not work for me unfortunately as I my payment method is "user defined" as in the outcome of their selection on my form is the total. I don't even have access to that "coupon" page.

**christhouas**I think I either need a conditions or formula for the calculation form. Something a long the lines of.

If "Promo Code" is equal to "PROMO5"

Then add calculations "-5" to Calculation

Is this possible? When I attempt this now, instead of just subtracting the 5$ from the total of the order, it just replaces it with 5$

- JotForm Support
**Chriistian**If you want a discount to be added for example "-5" to the calculation if they provide a Promo Code, then you can simply subtract the calculation to "-5". Please see the image below:

Hope this helps.

Regards. **christhouas**Appreciate the reply, already figured it out and implemented it! Thanks again.