---
schema_version: "1"
id: 4de6e089cf16fe2ff300623875517e5e10c20631da7d316b9f6e641f9e93ce04
title: + (Add)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_add.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_add.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 249119e39ba707b7a9a8fd327bdd0a6537ed2eefbf95a044d9919bc20777ed48
description: Calculates the sum of two values.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# \+ (Add)

Calculates the sum of two values.

## Use

`value1 + value2` and replace each value with merge fields, expressions, or other numeric values.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

Note If the values are text, the + concatenates.

![Formula Field Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Formula Field Example

`Amount + Maint_Amount__c + Services_Amount__c`

This formula calculates the sum of the product Amount, maintenance amount, and services fees. Maint amount and Service Fees are custom currency fields.

![Report Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Report Example

`EMAIL_OPT_OUT:SUM + DO_NOT_CALL:SUM` calculates all Email Opt Out fields plus all Do Not Call fields on the leads in your report. This formula is a number data type that returns a positive integer.

![Validation Rule Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Validation Rule Example

Let’s say you have a custom object that allows users to track the total number of hours worked in a week. Use the following example to ensure that users can’t save a time card record with more than 40 hours in a work week.

```
Monday_Hours__c + 
Tuesday_Hours__c + 
Wednesday_Hours__c + 
Thursday_Hours__c + 
Friday_Hours__c > 40
```

Use a formula like this one in a validation rule to display the following error message when the total number of hours entered for each work day is greater than 40: “Your total hours can’t exceed 40.” This example requires five custom fields on your custom object, one for each day of work.