Actuaries play a crucial role in the valuation of gratuity, which is a retirement benefit provided to employees by their employers…