> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/functions/date-and-time/add-substract-time-span.md).

# Add/Subtract Time Span

Adds/subtracts a time span to/from a given date/time/date & time/time span.

**Example:** Add Time Span(input: 16th Nov 2021, time span: 2 days) = 18th Nov 2021.

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] Input (date/time/date & time/time span) - date & time value to which/from which the "Time Span" data input will be added/subtracted.
* \[Input] Time Span (time span) - time span to add to/subtract from the "Input" data input.
* \[Output] Result (same as "Input") - result of the operation.
