> For the complete documentation index, see [llms.txt](https://docs.flexy.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexy.bot/modules/core/steps/date-calculator.md).

# Date Calculator

**Introduction**&#x20;

This step performs date calculations, such as adding or subtracting time units from a specified date.

**Description**&#x20;

Allows adding or subtracting days, hours, minutes, and other time units to or from a given date, adjusting according to a specified time zone.

**Configuration**

1. **Date**: Set the initial date for the calculation. This is a required field.
2. **Time Zone**: Choose the time zone for the date calculation. This is required to ensure accurate time adjustments.
3. **Operations**: Define the operations to be performed on the date. Each operation must include:
   * **Type**: Choose "Add" or "Subtract".
   * **Unit**: Select the unit of time (e.g., years, months, days, hours).
   * **Amount**: Specify the amount of the chosen unit to add or subtract. You can specify up to 20 operations.

**Outputs**

* **Result**: The resulting date after all calculations are applied.

**Usage**&#x20;

Useful for scenarios requiring dynamic date manipulations, such as scheduling future events or calculating deadlines.
