The formula for gratuity is: Gratuity (G) = n*b*15/26. where, n = The number of completed years in the current organization.b = the Last salary drawn or basic pay (plus dearness allowance, the commission received on sales, if any).Note: The number of working days in a month is considered as 26. Also, gratuity calculation is done at the rate of 15 days wages.