Video tutorial
Add a calculation
1
Create a new calculation
Open the 
Click 
Logic
modal in the bottom-right of your form editor.
Calculations
followed by + New calculation
. Here, you’ll be able to add, edit, and delete calculations in your form.
2
Enter the necessary details
Add your calculation by giving it a Name and Type. The name refers to how you’ll refer to it in-app, whereas the type can either be one of these:
- Number - if you want to compute some numerical result, like a price or a score
- Text - if you want to compute some dynamic text, e.g. some text that depends on a user’s selections in the form.
- Duration - if you want to compute the interval between two dates, e.g. age or term period
- 0 - if you want to add to a price variable over time as the respondent picks options
- 100 - if you want to deduct points for wrong answers on a quiz from 100
- Any arbitrary text - for a text calculation (or leaving it empty)
3
Define rules
Specify the rules that determine how the calculated value changes.
A rule is made up of 3 main parts:

- Operation - this is what you want to do to your calculation, e.g. Add a number to it
- Operation value - this is the value that interacts with the operation, e.g. Add whatever number you provide
- Condition - this defines when you should perform that operation. This is similar to how you might hide/show a question depending on user input
Common ways to use your calculations effectively
Set the price for your Payment page After adding a payment page, type@
or click the +
icon to reference a calculation instead of a static price for your payment page.

@
to reference previous answers or calculations. You can style this text by highlighting it and changing the font size, weight, or color.

duration
as the type. Select Start and End dates in your calculation followed by the measurement for Units.
