---
schema_version: "1"
id: 33b7595e7daf0ac0ff0fe0039c3c4c72a2fc53aea2ec771cf89ec319bbd0c5aa
title: Calculation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/bre_calculation_element.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.bre_calculation_element.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2e0e5c53235b267515a9fb3a32cf0790312d34fcade864c7a02a264f00baac4b
description: A calculation step element performs functions and mathematical operations on expression set resources—constants, variables, field aliases, and list variables.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Calculation

A calculation step element performs functions and mathematical operations on expression set resources—constants, variables, field aliases, and list variables.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions for clouds that have Business Rules Engine enabled</td></tr></tbody></table>

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-business_rules_engine-264-0-0-production-enus/b2d6dd5c-c231-428b-abbf-3dd2cd51a11f/images/icon_example.png)

Example Use the AGE function to calculate a person’s age from their birth date.

- Add a calculation step element in an expression set version. In the Formula field, select **AGE (Date)**.
- Replace (Date) in the Formula field with a variable of the Date data type.
- In the Output Variable field, select a variable of the Number data type.

![Example of Calculation element that uses a function.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-business_rules_engine-264-0-0-production-enus/b2d6dd5c-c231-428b-abbf-3dd2cd51a11f/business_rules_engine/images/Calculation_element_example_1.png)

Here, StudentBirthDate is a variable of the Date data type that stores the birth dates of students. StudentAge is a variable of the Number data type that stores the output returned by the AGE function.