# Rule action: Calculate

### Use cases

* Add a sale price based on your prices
* Increase your prices

Use the **calculate** action to make calculations on numbers in your product data.

### Add a sale price based on your prices

Calculate a sale price for your product data based on your prices. For example, to calculate a sales price of 20% off your prices, multiply by 0.8.

### Increase your prices

Calculate a price increase for your product data based on your prices. For example, to calculate a price increase of 15%, multiply price by 1.15<br>

<figure><img src="/files/X0yVPBdwXKAh1BpbJtna" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Tip: Check out our [rule templates](/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/rule-templates.md) and create this rule in just a few clicks.
{% endhint %}


---

# 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://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-calculate.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.
