# Add/Subtract Dates

This action allows you to calculate a new date by performing addition or subtraction on a selected date. Below are the configuration options:

#### Pick Date

Use the **Dynamic Data Source Selector** popup to enter or select the date from a previous action or payload. This is the date on which the addition or subtraction will be performed.

#### Select Operation

Choose whether to **Add** or **Subtract** from the selected date.

#### Enter the Unit

Specify the number of units (e.g., years, months, days, hours, minutes) to perform the operation.

We’ve included screenshots that show how to set up this action and the resulting calculated dates. Below are the details of the sample payload data used:

```json
{
  "start_date": "2024-02-03",
  "end_date": "2025-02-03"
}
```

<figure><img src="https://3583334649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdrfsCZXcXll5UVMF1xCv%2Fuploads%2F8vKnKZt920OfOuTNpSpy%2Fadd_or_subtract_date_action_config.png?alt=media&#x26;token=14bf83c4-9a61-42a3-a38f-8e09c732fb35" alt=""><figcaption><p>Add or Subtract Date Action Configuration</p></figcaption></figure>

<figure><img src="https://3583334649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdrfsCZXcXll5UVMF1xCv%2Fuploads%2FEN5K7whtdb8zDfDL4meW%2Fadd_or_subtract_date_action_result.png?alt=media&#x26;token=e8d5f6f3-353f-4981-b3c4-3825b8cad715" alt=""><figcaption><p>Add or Subtract Date Action Result</p></figcaption></figure>
