> For the complete documentation index, see [llms.txt](https://help.pickyassist.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickyassist.com/setting-up-guide/setting-up-connector/formatter/math-calculation.md).

# Math Calculation

Perform Add Subtract Multiply Divide

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;

![](https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlJChpzcxtwOYGcBd1q%2F-MgIIb7kYH5HoZ8XeJo6%2F-MgIKtDdkBA4btQilHRP%2Fcounter-math-calcuation.jpg?alt=media\&token=dc7dd895-1ffa-49f7-8e33-fc00c60cec2b)

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

![](https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlJChpzcxtwOYGcBd1q%2F-MgIIb7kYH5HoZ8XeJo6%2F-MgILRrwj9V8-gk_wQ8Q%2Fmath-formuala-selection.jpg?alt=media\&token=3c76ed5f-2402-4eb3-9db4-873ac98038e0)

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 %}

![](https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlJChpzcxtwOYGcBd1q%2F-MgIIb7kYH5HoZ8XeJo6%2F-MgILoUbaX0ELmJ8GX9o%2Fselecting-fields-math-calcuation.jpg?alt=media\&token=09bdbf8a-fc84-408f-a647-10c968591a90)

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

![](https://3382165395-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlJChpzcxtwOYGcBd1q%2F-MgIIb7kYH5HoZ8XeJo6%2F-MgIMtOLgMyLfbsctxJ9%2Fcalucator-test-results.jpg?alt=media\&token=85b3947b-a0a1-4761-ad39-c69c60031532)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
