I have a formula that determines the number of business hours between 2 dates (excluding holidays).
Depending on the callcenter, the business hours are different. I can get the formula to work for 1 call center at a time, but I can't put it all together for each call center.
This is my formula as I have it now. Only business hours for the Europe callcenter are being displayed, even for the US callcenter...any suggestions?
IF {tbl.callcenter} = "North America" then
dateTimeVar Start:= {@US_DateCreated};
dateTimeVar End:= {@US_FirstContact};
timeVar defaultstarttime:= time(08,00,00);
timeVar defaultendtime:= time(20,00,00);
//path to the text file containing the US holidays to exclude
wdaysClass1wdLoadFile ("C:\US_holidays.txt"
IF {tbl.callcenter} = "EMEA" then
dateTimeVar Start:= {@Europe_DateCreated};
dateTimeVar End:= {@Europe_FirstContact};
timeVar defaultstarttime:= time(08,30,00);
timeVar defaultendtime:= time(18,00,00);
//path to the text file containing the EMEA holidays to exclude
wdaysClass1wdLoadFile ("C:\Europe_holidays.txt"
///rest of formula continues on....
stringVar workingdays:= "-23456-";
Depending on the callcenter, the business hours are different. I can get the formula to work for 1 call center at a time, but I can't put it all together for each call center.
This is my formula as I have it now. Only business hours for the Europe callcenter are being displayed, even for the US callcenter...any suggestions?
IF {tbl.callcenter} = "North America" then
dateTimeVar Start:= {@US_DateCreated};
dateTimeVar End:= {@US_FirstContact};
timeVar defaultstarttime:= time(08,00,00);
timeVar defaultendtime:= time(20,00,00);
//path to the text file containing the US holidays to exclude
wdaysClass1wdLoadFile ("C:\US_holidays.txt"
IF {tbl.callcenter} = "EMEA" then
dateTimeVar Start:= {@Europe_DateCreated};
dateTimeVar End:= {@Europe_FirstContact};
timeVar defaultstarttime:= time(08,30,00);
timeVar defaultendtime:= time(18,00,00);
//path to the text file containing the EMEA holidays to exclude
wdaysClass1wdLoadFile ("C:\Europe_holidays.txt"
///rest of formula continues on....
stringVar workingdays:= "-23456-";