**SJWForms**I'm trying to create an order form for CD's that our school will be selling. The end user has the option to select mail delivery, but this is an additional charge. Here's what I want to do:

Total = #ofCDs x 10 + Shipping, if any

input #ofCDs desired > form calculates Total = #ofCDs x 10

if user selects "mail delivery", then form adds Shipping (3 x #ofCDs) to Total

I think that this can be done, I just don't know how. Any ideas?

Thank you!

Sr. Cecilia

- JotForm Support
**EltonCris**Hi Sr. Cecilia,

We have calculation tool available in the form builder. Here's an example for you.

Here's an example: http://form.jotformpro.com/form/40176627595968?. Feel free to clone this form if you like.

If you need further assistance, let us know here.

Regards!

**SJWForms**Thank you! I was able to get something going. However, I want the form to only calculate shipping if it applies, and I can't figure out how to do it.

Subtotal is supposed to take the number of CD's and multiply it by 10

Shipping Charge is supposed to take the number of CD's to be shipped and multiply it by 3

Total is supposed to add Subtotal and Shipping Charge

The problem I am having is that if the number of CD's to be shipped is equal to zero, then Shipping Charge stays blank, but so does Total.

Could you take a look and see what I'm doing wrong?

http://form.jotform.us/form/40176295163152

Thanks!

- JotForm Support
**EltonCris**Hi,

I am trying to understand your calculation. Can you explain the difference between no. of CDs and no. of CDs to be mailed?

Unfortunately, that is how calculation works. Maybe you could add another total fields specifically for mail delivery? Here's an example: http://www.jotformpro.com/form/40177632343956?. I'm not sure if I got it right, maybe you can figured it out when you clone this form.

Regards!

**SJWForms**Yes!! That's what I wanted! Thank you so much. I only wanted it to calculate shipping if the person selected shipping, so that is perfect!

Thanks again!

Sr. Cecilia