# Define Calculations for a Node
URL: https://docs.valsight.ai/define-calculations-for-a-node/
Description: This guide shows you how to define a calculation for a node so it computes its value based on other nodes in the model.
Define a calculation for a node so it computes its value based on other nodes in the model.

## Prerequisites

* The nodes you want to reference in the calculation [already exist.](/creating-nodes/)

## Steps

### Select the target node

Click the node on the canvas that should contain the calculation (for example, `Revenue`). The function editor opens automatically.

### Enter the calculation formula

In the function editor, type the formula using existing node names (for example, `'Volume' * 'Price'`).

### Use node references correctly

Make sure each referenced node name starts and ends with an apostrophe.

### Confirm the operation

Save the operation to store the calculation.

## What you have done

The selected node now calculates its value based on the defined formula. The model reflects the calculation logic between the connected nodes.

## Troubleshooting

* **Referenced node is not recognized**
  Check that the node name is spelled correctly and wrapped in apostrophes.
* **Auto-completion does not show the node**
  Ensure the referenced node already exists in the model.

## Related

* [Add Nodes to a Model](/creating-nodes/)
* [Create a New Model 7.0](/creating-and-configuring-models/)
* [Nodes](/nodes/)
