Under provision 1 to Section 4(1), the provision of continuous service of 5 years shall not be necessary where the termination of employment happened due to death or disablement. In case of death, the amount of gratuity shall be paid to the nominee. If no nomination was made, gratuity shall be paid to the heir. If the nominee or heir is a minor, then the amount of gratuity shall be submitted to the controlling authority. The minor can use this fund when they attain majority.
For the calculation part, refer to the [Payment of Gratuity Act, Rules, Forms, Returns & All Other Information](http://www.shramsamadhan.com/p/payment-of-gratuity-act-rules.html) as there are many contributing factors that cannot be stated here.