Hi,
Use formula as below upon completion of 5 years of minimum service for being eligible for gratuity as per gratuity act 1972. One has to rendered 240 days minimum in a year so that the particular year is considered as completed, if not then that year will not be considered in calculation. Remember 240 days are the one for which he/she is being paid which includes leaves as well.
21700/26*15*5= 62596
(Basic salary/26*15* number of years of service)