Thermal power calculation of planetary reducer