---
title: Calculations
slug: how-tos/rdkE-calculations
docTags: 
createdAt: 2025-09-05T12:04:44.000Z
---

A calculation can be used to operate on existing time series data and store the output as new separate time series data. In essence, a calculation is a script that runs periodically or against the incoming time series data stream, i.e. another measurement or asset property. The output of the calculation is stored as a separate measurement (= the name of the calculation).

1. [Creating a calculation](docId:5ko0eadY3X_O-y1Jxd8Cp)
2. [Bulk updating calculations](docId\:N6rAfkm-HsPr9BvYKDAR6)
3. [Recalculating](docId\:Rjw8uHyWEuj8g2UxeS_8q)

## Calculation types

- A `raw` calculation has one input data reference and runs for each value of this underlying input data reference ( raw mode ).
- A `sampled` calculation can use the aggregated values of multiple input data references and returns one value for each indicated time interval ( sampled mode ).
- A `simulated` calculation has no input data references and returns a simulated value for each indicated time interval ( simulation mode ).
