# MOD

The MOD function divides two numbers and returns the remainder.

## Syntax

```javascript
mod(dividend, divisor)
```

## Arguments

dividend - number to be divided

divisor - number you are dividing by

## Example

Use the mod function to calculate the remaining amount after dividing the allocated budget among cost centers, as shown in the example.

```
MOD([AllocatedBudget],[CostCenters])
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FB58NdGdKmQfn3LdhjEWZ%2Fimage.png?alt=media&#x26;token=1818bf42-c1c1-4507-8ee0-4a7f6a39897d" alt="How to use the MOD function to divide the allocated budget among cost centers"><figcaption><p>Use the MOD function to divide allocated budget among cost centers</p></figcaption></figure>
