Lets create a new custom entity with the following two fields
- Price (Currency Field)
- Quantity (Number Field)
- Tax (Currency Field)
Next we need to create the calculated field
Click Edit to configure the field calculation
- Create condition to execute calculation when Price field contains a value grater than zero.
- Create action (dd_price * dd_quantity + dd_tax) to perform when the above condition is met.
- Save & Close the calculated field then Publish All Customizations
- Open the form and capture a value for Price, Quantity & Tax
- Click Save
- The total field will contain the calculated value