# I would like to have my form create a purchase price using a base price plus a sq. area price. How can I accomplish this and let my customers checkout

• Mark0074u
Asked on May 12, 2017 at 11:56 AM
• liyam
Answered on May 12, 2017 at 01:13 PM

Hello Mark0074u,

This is possible by creating a form with a form calculation widget that shall create an amount for base price plus a separate price for sq. area. This guide can give you an idea on how to deliver its approach: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

But if you can share with us formulas on how these values should be calculated, it would be great so we can also assist you on how it should appear to function on your form.

We'll look forward to your response.

• Mark0074u
Answered on May 29, 2017 at 02:43 PM
This form Calculator sure does not seem to work in the preview mode. When I
add 2 fields and try to multiply the 2 fields, it enters a value in the
second field. As soon as I put 2 in the first field and start to put 4 in
the second field, it fills the second field with a random number like 4069
It seems like to me of all the widgets you have there would be 1 that
calculates square area. width multiplied by height = ( ) multiplied by
price per square area then add a base price.
Example
2x4=8x\$2.00 per square foot = \$16.00 +base price of \$2.00 = \$18.00
Then put the \$18.00 into Paypal and checkout.
How do I do this?
Thanks
Mark Howard
...
• Sven
Answered on May 29, 2017 at 03:01 PM

Hi Mark,

The calculation should be pretty painless, create two fields for hight and width, and a calculation widget to multiply those, and then multiply with the price per square foot. Please see below the demo form I have created for you:

Here's the form, you can review/clone via this URL:

https://form.jotformpro.com/71486323431958

Here's how to clone an existing form into your account:

How-to-Clone-an-Existing-Form-from-a-URL

Hope this helps, let us know if you need ay further help.

Thank you!