move calculate work day to helper