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.

Calculate start date back from del. date

Featured Replies

Hi

I would like to know if anyone has a simple calculation to work out a start date back from a delivery date required, based upon the number of working days a project would take e.g.

If delivery date must be 31st Aug 2007 and it would take 12 working days to produce the project, then result = it must be started by 16th Aug 2007.

Any help would be much appreciated.

Thanks

Gill :-)

check this one

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

shipByDate ( startDate ; numberOfDays ; satuday)


//name: shipByDate

//purpose: returns the day you need to ship by in order for your package to arrive by the date provided

//params: 

//startDate: (the initial date)

//numberOfDays: (how many WORKING days after the start date)

//saturday: if saturday = "y" then saturday IS a working day, otherwise not.





Let(v=If(saturday="y"; "2,3,4,5,6,7";"2,3,4,5,6")

;



If(Filter ( DayOfWeek(startDate-1) ; v ); 



If(numberOfDays -1=0;startDate-1;

shipByDate(startDate-1;numberOfDays-1;saturday));

shipByDate(startDate-1;numberOfDays;saturday



)

))

  • Author

That's brilliant, thank you for your help!

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.