Calculation method of reduction ratio of planetary gear reducer and its application