# Feed Actions: Calculate

LitCommerce Feed Management offers multiple rules when setting up your feed, enabling you to locate, modify, and optimize your product data for the target platform.

This article introduces you to the “Calculate” action.

## <mark style="color:$primary;">**Set up and apply**</mark>

For more details on how to set up and apply the rule, refer [HERE](https://litcommerce.gitbook.io/litcommerce-helpdesk/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules).

## <mark style="color:$primary;">**How it works**</mark>

The “Calculate” action appears under the Then and And-statements. It allows you to perform mathematical operations on numerical data (such as price, quantity, or weight) within your product feed.

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

You can choose from the following operations:

* Multiply by.
* Divide by.
* Plus.
* Minus.
* Multiply by field.
* Divide by field.
* Plus field.
* Minus field.

<figure><img src="/files/9t3DiP21FEpn072sxxlV" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Decimal values are supported for calculation.**
{% endhint %}

This rule is ideal for custom pricing, applying discounts, and unit conversions.

**Example:** Product pricing plays an important role in attracting buyers. You want to lower your prices on Google Shopping to offer special discounts for buyers purchasing through the platform. The following action can be set:

Take “Price” and “calculate” - take “Price” - “minus” - “2”.

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

This will allow LitCommerce to use your Main Store prices, minus 2, and display the corresponding values for each product accordingly.

For instance, after this rule is applied, “Bee Cupcake produced by Crème Florale Co.” shows a price of 11 in the feed instead of its original 13.

<div><figure><img src="/files/hxwBOL5n6J4oyJUv7eTd" alt=""><figcaption></figcaption></figure> <figure><img src="/files/sjhF0sEv0a597cbdFmQJ" alt=""><figcaption></figcaption></figure></div>

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# 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.litcommerce.com/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules/feed-actions/feed-actions-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.
