---
title: MINUS
url: https://www.tines.com/docs/formulas/functions/minus/
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)*

# MINUS

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

Subtracts a number from another number.

**Categories:** Numbers

## Syntax

```
MINUS(number, number)
```

## Examples

### Example 1

Input:

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

Formula:

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

Output:

```json
2
```

### Example 2

Input:

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

Formula:

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

Output:

```json
55.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": 4
        }
      },
      "position": {
        "x": 1830,
        "y": 3525
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "MINUS",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "minus": "=MINUS(my_action.message, 2)"
        }
      },
      "position": {
        "x": 1830,
        "y": 3630
      },
      "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": 67.28
        }
      },
      "position": {
        "x": 2010,
        "y": 3525
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "MINUS",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "minus": "=MINUS(my_action.message, 12)"
        }
      },
      "position": {
        "x": 2010,
        "y": 3630
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
