How long is the invention patent valid in China?

According to the newly revised patent law 202 1:

Invention patent: valid for 20 years;

Patent for utility model: validity period 10 year;

Appearance patent: the validity period is adjusted from 10 to 15.

It should be noted that the validity period of a patent is calculated from the date of filing. In addition, if it is an appearance patent filed before June 20021year, the validity period is still 10.