If you are covered under the Gratuity Act of 1972, your gratuity amount will be calculated as per the Gratuity formula G = N*B*15/26. Here N, the number of years will be rounded off to the nearest whole number which is 7 years. B will be your basic pay plus the dearness allowance.