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.

date calculation

Featured Replies

Having trouble calculating a table of dates. I have two columns. One is to calculate 12 days from start date and the other 15 days. Catch is that the calculated dates must skip non-business days. Federal holidays are a given and then there are exception dates that I can make non-business days. Please help! I need this ASAP or I'll have to do it by hand. Thanks!

Date_List_2005.zip

Take a look at this past thread. Also if you do a search for 'weekend' or 'holiday' I am sure there are past posts about it.

  • Author

Thanks for the suggestion. That one seems to be a calculated field. Mine is set up as a script calculation. I actually started working on this a year ago. Someone set this up for me and it almost works but not quite. It doesn't always skip the non-business day. Sometimes it does though. If you run script number two and do find for 1/01/06..1/30/07, the first two rows are correct (it skips 1/2 and 1/16 as non-business days) but if you scroll down to 12/05/6 date it has a date of 12/26 in column one - that is marked as a non-business day.

I think that if you want to calculate 12 work days from a date, you need to check each day and count it only if it's a work day - until your counter reaches 12.

  • Author

isn't that what this is doing?

There are a few different ways of looking at a work day calculation then merely subtracting one day from another.

You need to consider:

weekends

Holidays

number of days in the month.

Time Start, Day Start, Time End, and Day End.

Inclusive dates

There is a file in the Samples by BobWeaver, called Work days calc or something. You might want to take a look at it.

Lee

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.