The gratuity formula is G = N × B × 15/26. N is the number of completed years with the current employer. B is the last wage/salary received (including DA, commission on sales, if any). Note: The number of working days in a month is 26. You calculate gratuity at a rate of 15 days salary.