You need to complete 1 year for Entitlement of Gratuity.

Gratuity is Calculated based on 21 days of your basic salary