Thanks for your code. Your code and the others gave me the same result.
Here is the function that I am using that is giving different result as everyone else. Please help.
PARAMETERS d1,d2
if (type("d1")="D" and type("d2")="D") && both variables present?
wd=0&& variable to hold total number of weekdaysfor D=0to d2-d1
ifbetween(DOW(d1+D),2,6) && 2=Mon 6=Fri
wd=wd+1endifendforreturn wd
elsereturn0endif