The minimum payment period of endowment insurance is 180 months, that is, 15 years. You can give more, and then you can get more. At the same time, the pension insurance can accumulate payment years, that is, intermittent payment is allowed. Medical insurance needs at least 25/30 years. When you reach retirement age, you can apply for pension benefits and medical reimbursement (as long as the fee is renewed, it is also possible at ordinary times).
The current retirement age is 60 for men and 55 for women. Of course, under special circumstances such as engaging in high-risk work and losing the ability to work, you can apply for early retirement and receive pension benefits.
Further reading: How to buy insurance, which is good, and teach you how to avoid these "pits" of insurance.