cancel
Showing results forÂ
Did you mean:Â
See all
See all
##### Top groups
Explore all groups
##### Support
Deleted user
Level
0 / 0 points
Next:

Challenges
• Global
• Feed

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Recognition
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Check back soon to give more kudos.

Past Kudos Given
You haven't given any kudos yet. Share the love above and you'll see it here.

# It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

# How can I exclude weekends in the Structure plugin formula?

Good afternoon!
I'm trying to set up a formula to calculate how much time has passed since the problem was created.
Use the formula:

`IF(Created; NOW() - Created)`

In general, it works correctly. But I want to see how much time has passed without taking into account the days off.
If I use the "Work time" checkbox, then according to the JIRA settings, my time increases very much (instead of 1 week, it shows 7 weeks).

Has anyone ever encountered such a case? Can you tell me how to exclude Saturday and Sunday?

#### 1 accepted

This problem is actually a little bit deceptively complex.  This formula should caclulate the number of working days between two dates omitting weekends.  Keep in mind that the calculation thinks of the days in between as the days that are not the start and end dates.

For example if we have a start date of Monday and a finish date of Friday the same week most people would consider there to be 5 working days.  However the days_between function thinks there are 3 days between Monday and Friday.

{code}
with start = start:
with end = end:
with temp = weekday(start) + days_between(start, end):
with days = temp - weekday(start) - FLOOR((temp / 7) * 2):
days

{code}

Cheers,

Nick
[ALM Works]

###### TAGS
Community showcase
Published in Marketplace Apps & Integrations

### New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

221 views 3 20

### Community Events

Connect with like-minded Atlassian users at free events near you!

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.