> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/mathematische-aktionen/rule-action-calculate.md).

# Werte berechnen

Berechne Werte aus numerischen Produktfeldern.

Von **`Rechne`** um einen Wert aus numerischen Produktfeldern zu erstellen.

Diese Aktion ist für Aufgaben wie die folgenden nützlich:

* Verkaufspreise berechnen.
* Preise prozentual erhöhen oder senken.

### Verfügbare Berechnungsoptionen

Wähle eine der folgenden Operationen aus:

* `multipliziere mit`
* `teile durch`
* `Plus`
* `minus`
* `multipliziere mit Feld`
* `teile durch Feld`
* `plus Feld`
* `minus Feld`

***

## Beispiel `Rechne` Anwendungsfälle

### 20 % Rabatt berechnen

#### So erstellst du die Regel

* Bedingung: WENN der/die Wert(e) in `sale_price` **`nicht leer sind`**
* Aktion: DANN **`Rechne`** `price` `multipliziere mit` `0.8` `und setze ein in` `sale_price`

### Preise um 15 % erhöhen

#### So erstellst du die Regel

* Bedingung: **`Für alle Items`**
* Aktion: DANN **`Rechne`** `price` `multipliziere mit` `1.15` `und setze ein in` `price`

### Feste Bearbeitungskosten hinzufügen

#### So erstellst du die Regel

* Bedingung: **`Für alle Items`**
* Aktion: DANN **`Rechne`** `price` `Plus` `5` `und setze ein in` `price_with_handling`

### Einen Feldwert vom Preis abziehen

#### So erstellst du die Regel

* Bedingung: WENN der/die Wert(e) in `discount_amount` **`nicht leer sind`**
* Aktion: DANN **`Rechne`** `price` `minus Feld` `discount_amount` `und setze ein in` `sale_price`

### Rechne den Preis pro Item

#### So erstellst du die Regel

* Bedingung: WENN Wert(e) in `Menge` **`are not empty`**
* Aktion: DANN **`Rechne`** `price` `teile durch Feld` `Menge` `und setze ein in` `price_per_item`


---

# 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://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/mathematische-aktionen/rule-action-calculate.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.
