Dear Bala, your query is very short, and hence, I can't understand what exactly you wish to know. If your service has been terminated by any means before 5 years, then you are not entitled to gratuity. If your service has ceased after 5 years, then only can you file your claim for gratuity with the controlling authority in your area under The Payment of Gratuity Act within 2 years. You mentioned a 3-year period after leaving the services; if so, you have to submit a request for condonation of delay with proper reasons. Only then will your application be considered.
Regards,
KIRAN KALE