The Basics
This page will explain how the calculation system works in ez Form Calculator for WordPress. The plugin allows you to add element values, subtract, multiply, divide and many more math operations with ease.
The plugin works like this:
 Element values are calculated automatically
 Values are added up from top to bottom
 Some elements might contain calculation rows (e.g. multiply with other elements)
 All calculation elements might overwrite the price from where it’s positioned (if the option ‘overwrite_price’ is set to ‘Yes’)
Width * Height Calculation
The following form calculates the total square metres of the width and height element.
In this form, there are two Numbers elements called Width and Height:
Click on the Height Numbers element and find the Calculation section. You will see a calculation row which multiplies the Height value with the Width value. The calculated result will be automatically added to the total value:
By default, the calculated value will be treated as price. You can change this in the form options > Price section. Change the option Currency to m² and Currency position to after:
Please note that the option “Overwrite_price” is set to “Yes”. If it is set to “No”, the multiplied value will be added to Width’s value.
Formula when “Overwrite_price” = “Yes”:
total = Width * Height
Formula when “Overwrite_price” = “No”:
total = Width + (Width * Height)
 Form

The following form calculates the total square metres of the width and height element.
Loading...  How does it work?

In this form, there are two Numbers elements called Width and Height:
Click on the Height Numbers element and find the Calculation section. You will see a calculation row which multiplies the Height value with the Width value. The calculated result will be automatically added to the total value:
By default, the calculated value will be treated as price. You can change this in the form options > Price section. Change the option Currency to m² and Currency position to after:
Please note that the option “Overwrite_price” is set to “Yes”. If it is set to “No”, the multiplied value will be added to Width’s value.
Formula when “Overwrite_price” = “Yes”:
total = Width * Height
Formula when “Overwrite_price” = “No”:
total = Width + (Width * Height)
 Download
Calculating with Target Values
First, you have to determine which value to retrieve since there are multiple ways to do this. The most common ones are 1) Raw value and 4) Calculated target value without subtotal.
 Raw value
 This will retrieve the “raw” target element’s value, i.e. the value which is displayed in the input field
 If there is a factor defined in the target element, the retrieved value will be multiplied with the factor.
 Raw value without factor
 The same as #1 but this time, the value will ignore any factor.
 Calculated target value with subtotal
 Elements like Numbers, Dropdowns etc. where calculation rows are possible will not show the calculated value in the input field
 This option will retrieve the calculated target value with its subtotal value (i.e. the price of the current position + the calculated value)
 Calculated target value without subtotal
 The same as #3 but this time, the subtotal value will not be added to the calculated value
Generally, you can almost always use the 1) Raw value from Subtotals since these elements update their input field immediately. Other elements such as Numbers, Dropdowns etc. where any calculation row is present should be retrieved with 4) Calculated value without subtotal.
Note: do not use 3) or 4) in the same element since this will result in an infinite loop.
Description in “Form” tab. Please note that this section is available since v2.9.8.0
 Form

First, you have to determine which value to retrieve since there are multiple ways to do this. The most common ones are 1) Raw value and 4) Calculated target value without subtotal.
 Raw value
 This will retrieve the “raw” target element’s value, i.e. the value which is displayed in the input field
 If there is a factor defined in the target element, the retrieved value will be multiplied with the factor.
 Raw value without factor
 The same as #1 but this time, the value will ignore any factor.
 Calculated target value with subtotal
 Elements like Numbers, Dropdowns etc. where calculation rows are possible will not show the calculated value in the input field
 This option will retrieve the calculated target value with its subtotal value (i.e. the price of the current position + the calculated value)
 Calculated target value without subtotal
 The same as #3 but this time, the subtotal value will not be added to the calculated value
Generally, you can almost always use the 1) Raw value from Subtotals since these elements update their input field immediately. Other elements such as Numbers, Dropdowns etc. where any calculation row is present should be retrieved with 4) Calculated value without subtotal.
Note: do not use 3) or 4) in the same element since this will result in an infinite loop.
Loading...  Raw value
 How does it work?

Description in “Form” tab. Please note that this section is available since v2.9.8.0
 Download
Nested Calculation
Please note that this section is available since v2.9.9.0
Nested calculation requires open and closing brackets which you can find in the target element dropdown in the calculation section. This way, you don’t need to use placeholders anymore.
If you look at the following screenshot, you can see that calculation rows are indented. This is only necessary for open and closing brackets though you can understand better how the element is calcultated.
Make sure that paired open and closing brackets have the same priority or the element will not calculate correctly. You can increase / decrease priority with the left and right arrow buttons in the calculation section.
 Form

Loading...
 How does it work?

Please note that this section is available since v2.9.9.0
Nested calculation requires open and closing brackets which you can find in the target element dropdown in the calculation section. This way, you don’t need to use placeholders anymore.
If you look at the following screenshot, you can see that calculation rows are indented. This is only necessary for open and closing brackets though you can understand better how the element is calcultated.
Make sure that paired open and closing brackets have the same priority or the element will not calculate correctly. You can increase / decrease priority with the left and right arrow buttons in the calculation section.
 Download
Side Notes
 Make sure that the option “overwrite_price” in the quantity elements are set to “Yes”. Otherwise, the calculated value will be added, which is wrong for this purpose.
 Calculations may be wrong when using conditionally hidden subtotal values in the first row. In order to avoid this, simply set the first calculation row to “0” (equals / no target / 0).