Calculate Business Days Query

Shweta

Active Member
#1
Hi,

I have a requirement, where I need to perform the below calculation on dates. Can anyone please advise.

1. From a website portal, I am fetching an index date and now i need to check the condition, if that Index Date > 3 Business days.
second condition is: Index Date > 11 Business days
Now, this business day should not include holidays and weekends. So, can anyone please tell me how can i make this calc?

Also, I have to send email on 11th Business day, if the above condition does not met. So, is it possible to do so, that bot is running today and it should send email after 11 Business days. IF yes, then pls advise how?

Thanks!
 
#3
There is a function in BP you first need to create the Calendar in the system manager. It lets you use all holidays in the UK or a few other countries but there is an option to add all your own dates. so once you have your index date (lets say Thursday) 23/0/2109 then use the function to add 3 working days. the result is 29\05\2019 as there is a bank holiday on the coming Monday (As selected in the dates)

You can then check if it is within by comparing the dates.

Let us know if that solves it.
View attachment Calenders 2.PNG

View attachment Calenders.PNG

View attachment Screenshot (3).png
 
#8
The best solution would be to request from the person who does have access to create for you. Otherwise you can just check to see if the calendar is already in place by using one of the function and see if you get an error.

If you really needed to do It long hand and you dont want to use Excel functions to add days you can check what day of the week it is buy using 'FormatDate([Date], "dddd")' which will tell you what day it is then just use a look to add days and if it is a weekend you can add extra. You can also add a check to see if it matches any of the public holidays in the UK with a decision stage and then add extra that way. Its extremely long winded but it would work. I suggest requesting the Calender to be added.

It is possible to add the Permission to the developer tree in User roles but then all accounts with the developer role would be able to change
 
Top