Hi, yes every thing is going well to some extent.
My point is If the employee is having more than one record, then the 300 days should not be counted for the second record.
If only one record, it should stick to the rule.
I mean, when the employee complete 300 days he can be eligible for holiday...