> For the complete documentation index, see [llms.txt](https://help.reasy.ai/help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.reasy.ai/help/getting-started/engines/data-modeler/creating-a-model/adding-computational-formula.md).

# Adding Computational Formula

This article helps you understand adding a computation formula.

When you require dynamically calculated data, insert an expression in the attribute that calculates and holds the result. This is quite similar to arithmetic calculations using the BODMAS rule.

To understand more, let's look at an example of calculating employees' gross salaries:

Ex: Gross Salary = Net Salary - (Deductions + Taxes)

The Gross salary is calculated by subtracting taxes and deductions from the employee's net salary.

So, we require attributes holding Net salary, taxes, and deductions to be calculated. The movement data is available in these attributes; the "Gross Salary" attribute should calculate and display the derived result. Inserting an expression is as simple as inserting a formula in Excel. Edit the attribute to place a formula for this calculation. Here, short keys help you pick the attributes. Hitting **Control + Space** on your keyboard displays the attribute list, and **Control + M** displays the method list. As you see here, create an expression using the required attributes. If you want to enter the attributes manually, use this pattern: @{entityname.attributename}.


---

# 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 dynamically by asking a question.

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

```
GET https://help.reasy.ai/help/getting-started/engines/data-modeler/creating-a-model/adding-computational-formula.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
