How do you know what speedometer cable transmission gear to use?

as a guide with stock tires use your gear ratio.
i.e 3.23 gears would be a 31 or 32 tooth ...3.55 would be a 35 or 36 tooth speedometer gear.
Thank You!