mitank
Dec 17, 2008, 10:30 PM
I want to calculate Holidays for an employee
For Eg. Holiday company has given is on 10.12.2008.
Now if the employee comes to work on 9.12.2008 and 11.12.2008 he is marked present on 10.12.2008 and is given 1 holiday (not 3 as 9.12.2008 and 11.12.2008 are working days)
If the employee comes either on 9.12.2008 and remains absent on 11.12.2008 OR he remains absent on 9.12.2008 and comes on 11.12.2008 he is again marked present on 10.12.2008 and is given 1 holiday. (not 2 as he has worked either on 9.12.2008 or 11.12.2008 as being working days)
BUT if the employee does not come on 9.12.2008 OR 11.12.2008 he is marked ABSENT on 10.12.2008 and is not given the holiday benefit.
For Eg. Holiday company has given is on 10.12.2008.
Now if the employee comes to work on 9.12.2008 and 11.12.2008 he is marked present on 10.12.2008 and is given 1 holiday (not 3 as 9.12.2008 and 11.12.2008 are working days)
If the employee comes either on 9.12.2008 and remains absent on 11.12.2008 OR he remains absent on 9.12.2008 and comes on 11.12.2008 he is again marked present on 10.12.2008 and is given 1 holiday. (not 2 as he has worked either on 9.12.2008 or 11.12.2008 as being working days)
BUT if the employee does not come on 9.12.2008 OR 11.12.2008 he is marked ABSENT on 10.12.2008 and is not given the holiday benefit.