I have problem with my formula.
So far it works fine, but I need to add 1 day if "enddate" is a Saturday and add 2 days if "enddate" is a Sunday.
local DateTimeVar d1 := {startdate};
local DateTimeVar d2 := {enddate};
DateDiff ("d", d1, d2) -
DateDiff ("ww", d1, d2, crSaturday) -
DateDiff ("ww", d1, d2, crSunday)
This is workingdays, and if they work on Saturday or Sunday, I need to add those days to enddate.
/Terta