Platform DocumentationPlatform Documentation
Device TemplateWorkflowsNodes

Calculation

Perform mathematical calculations in your workflows.

The Calculation node performs mathematical operations on numeric values from your workflow. This is essential for data transformations, threshold calculations, and data normalization.

Overview

The Calculation node supports basic arithmetic operations and can be used to transform data values before passing them to action nodes.

Calculation Screenshot

How It Works

  1. Provide input values (constants or workflow variables)
  2. Select the calculation operation
  3. The result is passed to connected nodes

Configuration

SettingDescription
Input AFirst operand (number or variable)
OperationMathematical operation to perform
Input BSecond operand (number or variable)
ResultOutput variable name

Supported Operations

OperationDescriptionExample
AddAddition10 + 5 = 15
SubtractSubtraction10 - 5 = 5
MultiplyMultiplication10 times 5 equals 50
DivideDivision10 / 5 = 2
ModuloRemainder10 % 3 = 1
PowerExponentiation2^3 = 8

Use Cases

  • Unit conversion — Convert Celsius to Fahrenheit
  • Aggregations — Calculate averages, totals
  • Thresholds — Determine if values exceed limits
  • Data normalization — Scale values to a range

Example: Temperature Conversion

Node: Calculation
  Input A: {celsius}
  Operation: Multiply
  Input B: 1.8
  Result: fahrenheit_base

Node: Calculation
  Input A: {fahrenheit_base}
  Operation: Add
  Input B: 32
  Result: fahrenheit

Best Practices

  • Always validate input values before calculation
  • Handle division by zero cases
  • Use variables for intermediate results
  • Document complex calculation chains

Limitations

  • Works with numeric values only
  • Precision is limited to floating-point accuracy
  • Complex expressions require multiple nodes

Next Steps

Connect the calculation output to condition nodes for threshold checks, or to action nodes for automated responses.

On this page