---
title: MODULO
url: https://www.tines.com/docs/formulas/functions/modulo/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# MODULO

*[View on tines.com](https://www.tines.com/docs/formulas/functions/modulo/)*

Returns the remainder of a division operation.

**Categories:** Numbers

## Syntax

```
MODULO(numerator, denominator)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": 3
  }
}
```

Formula:

```
MODULO(my_action.message, 2)
```

Output:

```json
1
```

### Example 2

Input:

```json
{
  "my_action": {
    "message": 48
  }
}
```

Formula:

```
MODULO(my_action.message, 5)
```

Output:

```json
3
```

### Example 3

Input:

```json
{
  "my_action": {
    "message": 67.28
  }
}
```

Formula:

```
MODULO(my_action.message, 12)
```

Output:

```json
7.28
```

## Sample actions

### Sample action 1

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "2",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": 3
        }
      },
      "position": {
        "x": 2220,
        "y": 3540
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "MODULO",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "modulo": "=MODULO(my_action.message, 2)"
        }
      },
      "position": {
        "x": 2220,
        "y": 3645
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```

### Sample action 2

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "2",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": 48
        }
      },
      "position": {
        "x": 2400,
        "y": 3540
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "MODULO",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "modulo": "=MODULO(my_action.message, 5)"
        }
      },
      "position": {
        "x": 2400,
        "y": 3645
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```

### Sample action 3

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "2",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": 67.28
        }
      },
      "position": {
        "x": 2580,
        "y": 3540
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "MODULO",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "modulo": "=MODULO(my_action.message, 12)"
        }
      },
      "position": {
        "x": 2580,
        "y": 3645
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
