Gratuity isn't a flat percentage of pay, it's a daily-wage figure (your basic annual salary divided by 365) multiplied by 21 for each of your first 5 years of service, then multiplied by 30 for each year after that. The two rates don't blend retroactively: your first 5 years always accrue at 21 days, and only the years beyond that accrue at the higher 30-day rate. There's no back-dating the 30-day rate onto years you've already worked.
It's calculated on basic salary only, the fixed portion of your pay before housing allowance, transport allowance, and any other benefits. Since most UAE offer letters quote one bundled package figure, this is the single most common place people overestimate their gratuity, entering their full package instead of their actual basic salary.
Federal Decree-Law No. 33 of 2021, in force since 2 February 2022, made two changes that this calculator takes seriously rather than glossing over. First, it abolished the limited/unlimited contract distinction: every private-sector contract is now fixed-term, with employers required to convert any remaining unlimited contracts by 1 February 2023. Second, and more consequentially for anyone weighing whether to resign, it repealed the old rule that cut gratuity for employees who resigned from an unlimited contract before 5 years' service. Today, resignation and employer-initiated termination pay the exact same gratuity, provided you've completed at least 1 year of continuous service.
Total gratuity is capped at 2 years' basic salary, however long you stay with one employer. In practice this cap rarely binds for realistic salary-and-tenure combinations, it mainly matters at very long tenures (25 years or more) relative to a fairly low basic salary.