Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

number of business days

Featured Replies

ok.. I am pretty sure I have seen this before, but I am unable to find it.

I have two date fields, AssignDate and CompleteDate. What I need is a calculation that returns the difference (in days) between these dates, but only accounting for business days (Monday through Friday).

using Filemaker 6.

  • Author

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)

,"")

  • 2 years later...

You saved my life with this calc.

Thanks!

Sheryl

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.