Who is entitled
According to the u.ae summary of Article 51, a full-time expatriate worker who has completed at least one year of continuous service is entitled to gratuity on termination. Under one year, no gratuity is due. Days of unpaid absence are not counted as service.
UAE nationals are covered by pension and social security legislation instead, and part-time or other flexible work models have their own formula based on contracted hours. This post deals with full-time expatriate employees.