As per Qatar Labor Law Article (54).
Gratuity shall be agreed upon by the two parties, provided that it is not less than Three-Week Wage for every year of employment. The worker shall be entitled to gratuity for the fractions of the year in proportion to the duration of employment.
.
.
The last basic wage shall be the base for the calculation of the gratuity.