As per rules defined under the Rajasthan service rules (RSR) gratuity is calculated according to below mentioned formula:
Gratuity = (Basic Pay + Dearness Allowance) × Years of Service × 1/4
Maximum gratuity payable is Rs. 25 lakhs, as per the latest rules.