One can calculate the gratuity amount manually by using the gratuity formula:
If the employer is covered under the Gratuity Act — Gratuity (G) = n*b*15/26
If the employer is not covered under the Gratuity Act — Gratuity (G) = n*b*15/30
Where n is the number of years and b is the basic salary and dearness allowance