Jump to content

number of business days


This topic is 6099 days old. Please don't post here. Open a new topic instead.

Recommended Posts

ok.. i guess i should have looked harder. I just was able to find what I was looking for on databasepros website with there "Work days" files. I never found anything because I only searched for the phrase "Business Days".. anyway here is the calc i ended up with. if anyone sees any problems let me know, because I am only half sure how it works.

Thanks

Rick

If(not IsEmpty(PJCompleteDate),

Int((PJCompleteDate + Case(DayofWeek(PJCompleteDate) = 1, 1, DayofWeek(PJCompleteDate) = 7, 2) - PJAssignDate + Case(DayofWeek(PJAssignDate) = 1, 1, DayofWeek(PJAssignDate) = 7, 2)) / 7) * 5 +

Mod(PJCompleteDate + Case(DayofWeek(PJCompleteDate) = 1, 1, DayofWeek(PJCompleteDate) = 7, 2) - PJAssignDate + Case(DayofWeek(PJAssignDate) = 1, 1, DayofWeek(PJAssignDate) = 7, 2), 7) -

Case(DayofWeek(PJCompleteDate + Case(DayofWeek(PJCompleteDate) = 1, 1, DayofWeek(PJCompleteDate) = 7, 2)) < DayofWeek(PJAssignDate + Case(DayofWeek(PJAssignDate) = 1, 1, DayofWeek(PJAssignDate) = 7, 2)), 2)

,"")

Link to comment
Share on other sites

  • 2 years later...

This topic is 6099 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.