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.

Exclude weekends from number of days between dates?

Featured Replies

Does anyone have an elegant and efficient calculation for getting the number of days between two days EXCLUDING weekends? I have an old calculation that I used way back in the FM3-FM6 era, but I imagine there is a much better, efficient calculation out there.

You could do

weekofyear(enddate)-weekofyear(startdate)

and subtract 2 days for each week if the number of days ≥ 7

http://www.briandunning.com/cf/185

  • Newbies

Hello

Is there a topic, or any reference here about date filters and agorithms?

The question above (excluding weekends) is related with date samplers. As far as I know, date filters or algorithms are typically used for obtaining the required time series variations in fee and commission calculations like:

  • month-end data
  • quarterly month-end averages
  • monthly data with maximum value of the month
  • quarter-end data with search-backwards method if the last day of quarter is not available

I have no idea how one could implement date filters and algorithms with filemaker. Anyway, I am planning to write an article about the mathematics of this issue. Any comments or quations are very much appreciated, so that I can consider them in my article.

See:

http://finaquant.com/forum/general-framework-concepts/article-about-date-filters-or-algorithms-for-fee-and-commission-calculations

Regards

Tunc

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.