You need to sign in to do that
Don't have an account?

getting problem with formula
Hi All,
I am trying to get the business days excluding the weekends and including startdate and enddate.
Below formula I am using to get the business days.
CASE(
MOD(TODAY()- DATE(1900, 1, 7), 7),
0, (TODAY()) + BusinessDays__c+ FLOOR((BusinessDays__c-1)/5)*2,
1, (TODAY()) + BusinessDays__c+ FLOOR((BusinessDays__c)/5)*2,
2, (TODAY()) + BusinessDays__c+ FLOOR((BusinessDays__c+1)/5)*2,
3, (TODAY()) + BusinessDays__c+ FLOOR((BusinessDays__c+2)/5)*2,
4, (TODAY()) + BusinessDays__c+ FLOOR((BusinessDays__c+3)/5)*2,
5, (TODAY()) + BusinessDays__c+ CEILING((BusinessDays__c)/5)*2,
6, (TODAY()) - IF(BusinessDays__c > 0,1,0) + BusinessDays__c + CEILING((BusinessDays__c)/5)*2,
NULL)
I am expecting say for example if I give input date as 09/28/2018 , Output I should get 10/12/2018 and no. of Business Days as 11.
If I use above formula ,It is counting from the next day instead of from the same Start day.
And also is there a way can I show the Business days label instead of giving number as 11.
I tried to create a formula and also written Apex class .
Any help would be greatly appreciated.
Thanks,
Sirisha
replace, Start_Date__c and End_Date__c with whatever your field names are.