Yes Harish, you are entitled to gratuity as the same becomes applicable once you complete the uninterrupted service of 5 years with the same organization. And the calculation of the same would be done as follows:
Gratuity amount = No. of years of completed service x last drawn monthly basic salary.
Regards,
Girish