**pnwc**Hi there,

I am working on building a registration form for an upcoming event.

We have two ticket types: adults ($20) and children ($10).

Is there a way, based on how many adults and children they enter in a table, that a widget can calculate the final cost?

I haven't started the form yet, so I don't have a link to provide. I am just wondering if this is possible.

- JotForm Support
**Nik_C**You can do that with any payment integration actually: https://www.jotform.com/help/323-Mastering-Payment-Form-Integrations-with-JotForm

You can create both products there and choose the quantity available, the payment integration will calculate the total price automatically.

Please check this demo form: https://form.jotform.com/80374990280966

Let us know if you have any further questions.

Thank you!