# How to get the amount calculated for the Payment Field?

- JotForm Support
**Jim_R**For us to assist you better, we first need to understand how you calculate/compute the total that needs to be charged.

From how I see your form, you're using Stripe to Sell Products (in this case, Dinner Attendance). However, the Stripe Payment field already takes care of the computation for you.

You'll notice from the short clip above that the

**TOTAL**automatically changes based on the selected product. Do you need to do another set of calculation? If so, can you be more specific on what you're trying to do?If you could clearly explain to us what your form's workflow/logic is, along with a sample computation, we can offer suggestions on what's the best course of action to take to achieve it.

**defcon6**I had originally asked how to limit the number of people attending each dinner to 25 as preferences only allow 25 for all the events collectively. Then jot form help said to use inventory as widget. I tried that but I couldn't get it to calculate the amount owed if one chose one or more of the inventory events. So, I am stuck . I could keep my original way but can't limit the number of people attending or try inventory but can't figure out how to calculate the amount owed when people select one or more inventory forms.

Hope this is more clear. Is there anyone who can do this for me?

- JotForm Support
**EltonCris**It is easy to calculate the amount on the inventory widget.

Here's how:

1. Add a form calculation widget into your form

2. In the calculation wizard, insert the product field and multiply it with the price value.

3. If you want to pass the calculated amount into the payment field. Follow this guide: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

If you need further assistance, let us know.

**defcon6**Thank you. I have made a bit progress. I have added 4 dinners with the calculation widget you suggested. However, when I try to test it, only one of the dinners is shown when the 4 dinners are clearly seen in the jot form. Is there something that needs to be changed.

Thank you

- JotForm Support
**EltonCris**Great!

Do you mean to say that you have added 4 inventory widget in your form? Is that what you mean with dinners?

I checked your form (63434909960363) and there's only one inventory widget in it.

Or perhaps I am looking into a different form. Would you please provide more details?

Thanks!

**defcon6**Sorry. Yes. I meant I added four individual inventory forms . Here it is as separate form https://form.jotformeu.com/63435797529370

- JotForm Support
**Nik_C**I'm sorry, but I wasn't sure I understood the problem. Are you not seeing inventory widget in Form Calculations wizard or in the form itself, I checked your form in Form Builder and I can see them all:

And in the form preview:

Please let us know so we can investigate further.

Thank you!

**defcon6**I am seeing the forms in preview and added the conditions needed to get calculations work, but if I choose one of the events and put in a number for attendees, the subtotal doesn't change. I thought I did all correctly, but still can't get a total amount . Any help would be welcome.

- JotForm Support
**EltonCris**You have the following condition in your form that conflicts the calculation formula so I removed it.

Then I added the 4 inventory widgets in the calculation wizard and multiplied each by 250 (since this was your initial setup on the first inventory widget). Feel free to change them according to your preference.

If you have further questions, let us know.

**defcon6**Thank you so much. It was driving me crazy. Very kind of you.