Use the
Formula
field to set up any form calculation. When your respondents fill in the form, calculations will be performed based on their input. The answer will be displayed in the field you have entered your formula in.
Using the Formula field you can,
To add a formula field to your form,
f1= n1+ n2
f2= n3 + f3
f3= f1 + f2
Formula 2 depends on Formula 3's answer (and vice versa) to perform calculations, resulting in an endless loop. Recheck your formula to avoid this type of infinite loop.
Using the math functions we support, you can calculate the differences between time and date fields, and also round off decimal numbers into integers. You will find
Functions
in the right pane of the
Formula
field pop-up.
To use a function,
|
Function
|
Role
|
Supported Field Types
|
|
DayDiff
|
Returns the day difference between two date values
|
Date, Date-Time
|
|
MonthDiff
|
Returns the month difference between two date values
|
Date, Date-Time
|
|
YearDiff
|
Returns the year difference between two date values
|
Date, Date-Time
|
|
HourDiff
|
Returns the hour difference between two time values
|
Time, Date-Time
|
|
MinutesDiff
|
Returns the minute difference between two time values
|
Time, Date-Time
|
|
RoundUp
|
Rounds off the decimal number to that next value, away from zero
|
Decimal, Currency, Formula
|
|
RoundDown
|
Rounds off the decimal number to that of the previous value
|
Decimal, Currency, Formula
|
|
Round
|
Rounds off a decimal number to that of the next number when the decimal
value is .5 or above, and to the previous number when the decimal value is below .5 |
Decimal, Currency, Formula
|
You can add a unit to your formula to show the result more contextually in the live form. A unit can be added once the formula configuration is completed.
To include a unit for the formula calculated value: