Further to the advice received from the learned members, please be informed that the amount will be for 5 years as of now unless you are still in employment for more than 6 months in the calendar year. In that case, it will be considered as one year. Essentially, you need to meet the first criterion of 5 years to be eligible for gratuity. Any portion of the year that exceeds 6 months in the last year of service will be counted as one year. For example, if you work for 5 years and 6+ months in the 6th year, it will be considered as 6 years of gratuity.
Thanks and Regards