How are the many calculations to determine torque done