> 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-nl/regels-bulkbewerken-en-verrijken/how-to-use-actions-then-in-rules/berekenacties/rule-action-calculate.md).

# Waarden berekenen

Bereken waarden vanuit numerieke productvelden.

Gebruik **`bereken`** om een waarde aan te maken vanuit numerieke productvelden.

Deze actie is handig voor taken zoals:

* Verkoopprijzen berekenen.
* Prijzen met een percentage verhogen of verlagen.

### Beschikbare berekeningsopties

Kies een van de volgende bewerkingen:

* `vermenigvuldig met`
* `deel door`
* `Plus`
* `minus`
* `vermenigvuldig met veld`
* `delen door veld`
* `plus veld`
* `minus veld`

***

## Voorbeeld `bereken` gebruiksscenario's

### Een korting van 20% berekenen

#### Zo stel je de regel op

* Voorwaarde: als waarde(n) in `sale_price` **`niet leeg zijn`**
* Actie: dan **`bereken`** `price` `vermenigvuldig met` `0.8` `en zet in` `sale_price`

### Verhoog prijzen met 15%

#### Zo stel je de regel op

* Voorwaarde: **`Voor alle Items`**
* Actie: dan **`bereken`** `price` `vermenigvuldig met` `1.15` `en zet in` `price`

### Voeg vaste verwerkingskosten toe

#### Zo stel je de regel op

* Voorwaarde: **`Voor alle Items`**
* Actie: dan **`bereken`** `price` `Plus` `5` `en zet in` `price_with_handling`

### Trek een veldwaarde af van de prijs

#### Zo stel je de regel op

* Voorwaarde: als waarde(n) in `discount_amount` **`zijn niet leeg`**
* Actie: dan **`bereken`** `price` `minus veld` `discount_amount` `en zet in` `sale_price`

### Bereken de prijs per Item

#### Zo stel je de regel op

* Voorwaarde: ALS waarde(n) in `quantity` **`are not empty`**
* Actie: DAN **`bereken`** `price` `deel door veld` `Hoeveelheid` `en zet 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-nl/regels-bulkbewerken-en-verrijken/how-to-use-actions-then-in-rules/berekenacties/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.
