# MOD

The MOD function divides one number by another and returns the remainder of the division. It is commonly used in calculations involving cyclic patterns, intervals, or determining whether a number is divisible by another number.

### Syntax

```javascript
MOD(dividend, divisor)
```

### Arguments

dividend - number to be divided (Required).

divisor - number you are dividing by (Required).

### Example

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

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

<figure><img src="/files/KtGbzn4W0A8H8BI7sRgs" 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/formula-syntax/math-functions/mod.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
