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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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
    Microsoft Employee 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard