cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marsin04
Frequent Visitor

Add BUSINESS DAYS to time stamp

Hi!

 

I need to calculate a 'Due Date' that is 30 BUSINESS DAYS from today. So far, I know that the following formula gives me 30 (general) days from today (including weekends): formatDateTime(addDays(utcNow(), 15), 'yyyy-MM-dd').

 

Any ideas on how to calculate 30 business days (excluding weekends) from today would be greatly appreciated!!!

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User III
Super User III

Hi

THere are several threads on how to calculate business days with Microsoft Flow:

in this way it is explained how to do the same calculation you are looking for backwards

I would recommend to apply the same approach with minor changes i.e. using addDays(outputs('CurrentDate'),1) instead of addDays(outputs('CurrentDate'),-1)

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

1 REPLY 1
efialttes
Super User III
Super User III

Hi

THere are several threads on how to calculate business days with Microsoft Flow:

in this way it is explained how to do the same calculation you are looking for backwards

I would recommend to apply the same approach with minor changes i.e. using addDays(outputs('CurrentDate'),1) instead of addDays(outputs('CurrentDate'),-1)

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,179)