web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Count 3 *Business* Day...
Power Automate
Unanswered

Count 3 *Business* Days from calculated date

(1) ShareShare
ReportReport
Posted on by 38

Hi There,

 

I have a flow which creates a reminder a few days before the event starts but I need it to count business days only. 

 

Currently I am using the "calculate time" function to subtract 3 days to the start date of the event. What I need to do however is subtract 3 business days to the start date of the event, so that if the event starts on Monday, the reminder will be set for Wednesday. likewise if the event starts on Wednesday the reminder should be set for Friday. 

 

Is there a way to do this?? 

 

If so - how?

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @StillLearning_ ,

     

    Please try:

    if(
     or(equals(dayOfWeek(StartDateOfTheEvent),4),equals(dayOfWeek(StartDateOfTheEvent),5)),
     addDays(StartDateOfTheEvent,-3),
     if(
     equals(dayOfWeek(StartDateOfTheEvent),6),
    	 addDays(StartDateOfTheEvent,-4),
    	 addDays(StartDateOfTheEvent,-5)
     )
    )

     

    Best Regards,

    Bof

  • StillLearning_ Profile Picture
    38 on at

    Where should I try this ? 

     

    I am currently using the 'subtract from time'  function (below)  - how / where do I insert the below formula? is it a compose function or ? 

     

    StillLearning__0-1704349739252.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @StillLearning_ ,

     

    Please try:

    vbofengmsft_0-1704351077690.png

    if(
     or(equals(dayOfWeek(outputs('Create_event_(V2)')?['body/start']),4),equals(dayOfWeek(outputs('Create_event_(V2)')?['body/start']),5)),
     addDays(outputs('Create_event_(V2)')?['body/start'],-3),
     if(
     equals(dayOfWeek(outputs('Create_event_(V2)')?['body/start']),6),
    	 addDays(outputs('Create_event_(V2)')?['body/start'],-4),
    	 addDays(outputs('Create_event_(V2)')?['body/start'],-5)
     )
    )

     

    Best Regards,

    Bof

  • StillLearning_ Profile Picture
    38 on at

    Thank you! that works now! 

     

    Can I assume that in order to adjust the number of business days to count I just add or reduce the "-3" "-4" "-5" equally? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard