The speedos tend to be wrong to begin with. The charts can be sorta close. Quick rule of thumb is that for factory-ish size tires us the rear gear ratio. 3.23, use 32, 3.91, use 39 etc. that’ll get you in the ballpark.
Important part after that… put it in and use a gps app to measure some speed, say 60. Then look at the speedo. If the speedo is too high you need more teeth, too low, fewer. Make a ratio between gps and speedo, say you read 65 and gps was 60. 65/60=1.08. And let’s say you have a 35 tooth gear in there to start. 35 x 1.08 = 37.9 so use a 38. I’ve done this and it makes a super accurate speedo.
**special note** when the speedo is right on, the odometer might not be! Use an odometer app for the same thing. Can only have one right though. I do the speedo.
Edit: a couple other thoughts: 65 and before use different gears. The “lookup charts” can be very wrong. My ‘64 by the chart and factory spec had a 19 tooth. With factory dia tires I need a 21 for the speed to be right and a 20 for the odo to be right.