implemented logic to account for worker and project schedules