> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/date-calculation.md).

# Date Calculation

## Description

When using this part, the system returns the result achieved by adding or subtracting a specified number of days, hours, minutes, and seconds to or from a specified date and time.

## Use

This part allows users to have the system calculate a date in the future or past when given another date; for example, the system can identify the date of a next appointment if an end-user is required to have appointments every two weeks. The user could also employ this part to determine a past date; for example, the system can determine a past date and use it as milestone date against which to compare a transactional date (e.g. flag as late if TODAY > Book Rental Date plus 14 days).

In this part, the user can specify the number of days, hours, minutes, and seconds to use for the calculation, or the user can identify data objects the system should use for the calculations. This could, for example, allow the user to have the system create a loop that separates invoices into past due "buckets" (30 days past due, 90 days past due, 180 days past due, etc.).

## Editor Fields

| Field Name                                 | Description/Use                                                                                                                                                                                        | <p>Type/<br>Options</p> | <p>Optional/<br>Mandatory</p> |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------- | ----------------------------- |
| Start Date                                 | This is the field that contains the start date to be used. It should be entered in the $() format.                                                                                                     | Text                    | Mandatory                     |
| Result Date                                | This is the data object resulting from the calculation. It is not entered in the $() format.                                                                                                           | Data Object             | Mandatory                     |
| Operation                                  | This is the operator for the system to use in the calculation: either add or subtract from the start date.                                                                                             | Add \| Subtract         | Optional                      |
| <p>Days<br>Hours<br>Minutes<br>Seconds</p> | These are the numbers the system will use in the calculation. You can enter specific numbers in the fields or use data object variables in $(...) format from the application. Each field is optional. | Number or Text          | Optional                      |

NOTE: *Start date* requires the user to enter the $() data object construction and *Result date* does not .

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-0b9645aba30985ca5c29e76a653db8b482f835a6%2Ff82cd49f-4182-401f-906e-a6558ec33708.png?alt=media)

## Example

For a simple example of the date\_calculation part, download and import the following [sample project](/release-9/example-gallery/example-projects-for-parts/date-calculation-example-project.md) in your workspace.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/date-calculation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
