# Math Calculation

Math Calculation in the Connector is used to perform following calculations based on each situations&#x20;

1. Add
2. Subtract
3. Multiply
4. Divide

This helps you to multiply 3 numbers together to find a value for an example if you have a hotel booking form and want to give an instant quotation via WhatsApp whenever a new form is submitted. It can simply multiple 3 values together against a static value like room rent per day x number of days x number of adults. This value can be stored into a variable and able to use it in the connector steps.

## Setting up Math Calculation&#x20;

To setup math calculation go Formatter -> Select Math Calculation from Formatter Type as shown in the below image;

![](/files/-MgIKtDdkBA4btQilHRP)

Now Select the Action Type you want to perform  from the drop as shown below&#x20;

![](/files/-MgILRrwj9V8-gk_wQ8Q)

Now Input the values you want to calculate in comma separated format i.e each value should be separated by a comma, you can use the attribute to select a value from the 3rd party event.

{% hint style="info" %}
Kindly note the each number should be separated by comma, if you want to add multiply 3 number together then use 1,1,1 the result will be 1&#x20;
{% endhint %}

![](/files/-MgILoUbaX0ELmJ8GX9o)

Now give a name to the variable in the field "Store Converted Result to"  this name will be available in the attribute field for selections.

### Testing the Result

After mapping the numbers you can click on the Test Button as shown below and it will show the result on the screen as show below

![](/files/-MgIMtOLgMyLfbsctxJ9)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pickyassist.com/setting-up-guide/setting-up-connector/formatter/math-calculation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
