updated calculateEmployeeUnPaidDays to the new implementation