# My coupon is not working

**justenjoy**I've been working on trying to get it so I can have a valentines coupon code that will basically do buy one get one half off. I've got some other complicated calculations on my form for shipping cost and what not. Can someone assist?

I've created my condition that I thought would work, but I've disabled it for now, as it's causing my "total due" field to not populate at all

**Carina**I inspected the form and the calculation formula had some errors. It is 0.75 instead of 7.5, and it was missing a calculation sign between the 7.5 and the other elements:

I created a clone and added another total field so that calculation might be simpler. The first total field (which has the sum of all the cookies might be hidden) will be very useful to create a very simple formula - 0.75*total:

You can test and clone the demo form:

http://form.jotformpro.com/form/50404338038954?

Let us know if we can assist you further.

**justenjoy**It actually needs to be 7.5 because it's the number of dollars. They put in the number of dozens they want and the dozens are 10 dollars each. Also I need to output it to the regular total due field. Not a new discount field. It needs to pass that for Paypal calculation.

**justenjoy**I got it figured out based on your reply. I just needed to add the * between the 7.5 and the rest. Thanks!

**Carina**But still I believe that if you want 50% discount on the second you will need to use 0.75 (it's the same as 75%). if you use the 7.5 you'll get different results like 7.5*80=600; 0.75*80=60.

You can have both total fields, one hidden if you prefer, and you can just update the Paypal "get amount from" field in order to be the new total field with discount.

This is a suggestion in order to make the calculation simpler.Let us know if we can assist you further.

**justenjoy**Yeah but it's number of dollars, which is TEN times the number that we're calculating on. So that's why. Like I said, I got it working by adding a single asterisk. Thanks!

**Carina**Thanks for updating us. If you need further assistance please let us know, as we're here to help.