Under the Qatar Law, gratuity is 21 days per year of service.

21/30=0.7

0.7x5000 = 3500QR

3500x7 = 24500 QR ( your gratuity for 7 years of service)