...
21 * 12/12 + 21* (14-12)/12 +21*16/365 = 25,24 (days).
25,24* 6000/ 30 = 5085 AED.
2. Employee worked more than 5 years:
...
Employee worked 6 years 2 months 30 days ( 74 months 30 days).
Days:
So: 21(days)*5 (years)/12 + (74-60(months))*30(days)/12 + 30(days)*30/365 = 142,47 (days should to be paid as End of Service benefits).
142,47* 6000 (AED)/ 30 = 28494 (right amount).
