Hi Suresh,
Gratuity is applicable to those employees who have completed continuous 5 or more years of service. They should have worked 240 days each year. Gratuity is payable at 15 days per every year of work. If an employee has worked more than 6 months, it is counted as a full year, but if it is less than 6 months, it is not included in the calculation.
The formula for calculating gratuity is: Gratuity = (Basic Salary / 26) * years of service * 15 days. For example, if Mr. X had been working for 8 years and 7 months before leaving the service, and his last basic salary was 6000/- per month, then the gratuity amount would be calculated as follows:
Gratuity amount = 6000 / 26 * 9 * 15
= 31154
Please let me know if you need any further clarification or assistance.