Calculate the number of work days in a given period.