How to attach a potentiometer to a servo motor shaft

You're mixing up things. To calculate the torque of your motor you need to measure the length of the arm the motor has to move from the centre of the motor's axle (that's your motor's pivot point) to where it's attached to whatever you want to apply the force to.

Have a look at these images. Should make it clear.