Gratuity is calculated on the last drawn salary, which includes the basic salary, dearness allowance, and any other regularly paid allowances.