---
schema_version: "1"
id: aaa6ce8cb1f53534640a5ee66fbb8cc51abaa3bffc879221bdab5da1125c42a7
title: Arithmetic Operators
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/reference/bi-saql-operators-arithmetic.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-operators-arithmetic.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9676f8b80fe2f80d01616614a7a647e398a63301bfea8ab4a7154e98ea60aabe
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# Arithmetic Operators

Use arithmetic operators to perform addition, subtraction, multiplication, division, and modulo operations.

| Operator | Description    |
| -------- | -------------- |
| `+`      | Plus           |
| `-`      | Minus          |
| `*`      | Multiplication |
| `/`      | Division       |
| `%`      | Modulo         |

## Example

You want to charge each of your accounts 5% of their opportunities as a fee. Create a query that multiplies the `Amount` field by .05. This query will resemble the following:

```nolang
q = load "opportunity";
q = group q by 'Account.Name';
q = foreach q generate 'Account.Name' as 'Account.Name', sum('Amount') * 0.05 as 'Fee';
q = order q by 'Fee' desc;
q = limit q 2000;
```
