---
title: "Add days to a date excluding specific days."
canonical: "https://support.appfire.com/space/JMWEC/465242487/Add%20days%20to%20a%20date%20excluding%20specific%20days."
format: markdown
---
> Macro (aura-html)

The [businessAdd](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466323491) filter adds a specific number of days to a date, skipping non-business days, where non-business days mean Saturday and Sunday. This article provides the code snippet to add a given number of days to date while skipping the specified weekdays.

## Instructions

1. Navigate to the intended workflow to make the necessary changes in the edit mode.
2. Select the required transition.
3. Select the *Post functions *tab and click `Add post function`.
4. Select the [Set issue fields (JMWE app)](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849) post-function and click `Add`.
5. Select the target issue and target field in **Target Issue(s)** and **Add Field(s)** respectively, and add the following template as **Value** for the added field:

Replace : 

- `10057` with the `id` of the date field to which the number of days should be added.
- `10055` with the `id` of the field, which contains the value of the number of days to be added.

In the above template, we are considering Friday (line #7) and Saturday (line #9) as non-working days. Modify them as per your use case (refer to [this page](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466323491))

![JMWE for Jira Cloud date calculation settings for excluding specific days from date operations](media://611e2436-296d-4ef2-af0f-791687b5be3d)


Publish the workflow to see the changes reflected on the target issue.

### References

- [How to insert information using Nunjucks annotations](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811)
- [Accessing JIRA Standard fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466225701)
- [date filter](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466323491)
- [Tags and Expressions](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466322168)

## \uD83D\uDCCB Related articles