Peter Zitrone - 2009-10-14 19:22:24 - In reply to message 1 from chip
the script is great, but I have a problem:
2009-10-16 to 2009-10-23 it says 8 days in total, 6 week days and 6 working days.
2009-10-16 to 2009-10-26 it says 11 days in total (that's right), but still 6 week days and 6 working days though it should now be 7 week.
I didn't add any holidays in this period, but in the second example 1 day is missing. Changing to
return $nbr_work_days + 1;
doesn't work for me because as seen in the first example it's not always 1 day missing, just sometimes. Any ideas how to fix this?