> ## Documentation Index
> Fetch the complete documentation index at: https://amasty.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Calculation fields

> Create calculated fields from numeric metafields and attributes and use them as tags in feed templates to meet marketplace requirements.

The **Calculation Fields** section allows you to create and manage calculated fields, which can then be used in feed templates as tags. This feature enables you to meet the specific needs and requirements of different marketplaces by performing calculations with numeric metafields and attributes.

![Calculation fields](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_FeedFusion/feed-160-calculated-field.png)

## Create a calculated field

**1. Click the **Create** button.**

**2. Configure the parameters of the calculated field**

* **Formula Name:** assign a name to the formula so you can easily find it in the feed template's drop-down menu.

![Create calculation field](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_FeedFusion/feed-160-create-field.png)

* **Formula Preview:** displays a preview of the formula as you construct it.
* **Formula Components:** build the formula using available numeric attributes, numbers, and mathematical operators.

![Formula components](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_FeedFusion/feed-160-formula.png)

> [!NOTE]
>
> If there are many available attributes or their names are lengthy, those that do not fit will be accessible via the "More Attributes" drop-down menu.

**3. Save the formula**

Once saved, the formula will appear in the **Calculated Fields** section under the name you specified.

![Calculation field created](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_FeedFusion/feed-160-edit-remove.png)

You can **Edit** or **Remove** the formula as needed.

The calculated field will also be available in the feed creation **Template** drop-down list of attributes (see [Feeds from templates](https://amasty.mintlify.site/sf/feedfusion/templates.md#template)).

## Important considerations

* **Only numeric** metafields and attributes can be used in formulas.
* If a formula contains an **empty field**, the resulting value in the feed will also be **empty**.
* If a formula is created and used in a feed but later **deleted**, the feed will still display an **empty value** where the formula was applied.

By leveraging calculated fields, you can dynamically generate values tailored to marketplace requirements while maintaining flexibility and control over your feed data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.