Hello,
I build this flow where I want the condition only to be true when minutes of the SharePoint Created time is between two numbers like 179(greater than) and 270(less than) and it the condition should also take Business Hours(09:00 - 17:00) and, weekends into account.
Example:
Created time Friday 16:50
Output:
The condition is true for 50% when it's Monday and the time between 10:49am &12:20pm
Example:
Created time Friday 16:50
Output:
The condition is true for 75% when it's Monday and the time between 12:19am &13:50pm
Example:
Created time Friday 16:50
Output:
The condition is true for 100% when it's Monday and the time greater or equals 13:50pm
Example:
Created time Monday 07:50
Output:
The condition is true for 50% when it's Monday and the time between 10:59am &12:30pm
Example:
Created time Monday 07:50
Output:
The condition is true for 75% when it's Monday and the time between 12:29am &13:59pm
Example:
Created time Monday 07:50
Output:
The condition is true for 100% when it's Monday and the time greater or equals 14:00pm
Friday greater or equals to 17:00 or any time in weekend is the same calculation as Monday 07:50
div(div(mul(sub(ticks(utcnow()), ticks(items('Apply_to_each')?['Created'])), 100), 1000000000), 60)
Any help would be appreciated.