# How to calculate payments in Forms

**URL:** <https://community.blippa.com/t/how-to-calculate-payments-in-forms/194>\
**Category:** Uncategorized\
**Tags:** forms, payments\
**Created:** [May 16, 2024, 8:21am UTC](https://community.blippa.com/t/how-to-calculate-payments-in-forms/194 "2024-05-16T08:21:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrunhem](https://community.blippa.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mrunhem](https://community.blippa.com/u/mrunhem)\
**Post date:** [May 16, 2024, 8:21am UTC](https://community.blippa.com/t/how-to-calculate-payments-in-forms/194/1 "2024-05-16T08:21:59Z")

</div>

In order to calculate the amount to pay inside a Blippa Form, you first need to enable at least one payment integration (Stripe, Swish etc). (In Labelsadmin-Settings-Integrations).

- Optional: Add a system variable with the price. Make the variable Numeric and do not select Account object etc. (This way you can later change the price through a form instead of having to go to every payment form.)  
 ![Screenshot 2024-05-16 at 10.23.04](https://community.blippa.com/uploads/default/optimized/1X/95b50fee5ec9421585bb850cfbc466ef7ae036b9_2_690x15.png)

In the form, add a dropdown and list the choices.

 ![Screenshot 2024-05-16 at 10.27.24](https://community.blippa.com/uploads/default/original/1X/e3d3b6f92b90853cb91fc361e18068eee95369c2.png)

In the form, goto Setttings:

- Select the payment option.
- Add the price, either in the “Amount to pay” (for single price) or “Calculate Amount based on Form field”.  
 ![Screenshot 2024-05-16 at 10.28.02](https://community.blippa.com/uploads/default/original/1X/308c1f59ec0f7928301049a4f31ad75c9a24691a.png)

In this case, the variable stallplats\_dygn is the daily price for one RV.  
And for two days I just multiply the price 🙂

But you can do much more complicated calculations, like  
`($var:hamnpris_dag$ + ($var:landstrom$ if '$form:extra_landstrom$'=='Ja (100:-)' else 0))*(0.9 if '$form:discount_svsjo$'=='Yes' else 1)`

The result:

 ![Screenshot 2024-05-16 at 10.31.06](https://community.blippa.com/uploads/default/original/1X/e0fc1e06a7fb6c99d9abaaf8627657835c902da7.jpeg)

Have fun!
