How to calibrate speedometer?

You can find nice used gears online. New ones aren't cheap. Make sure you reinstall the housing correctly. The housing needs to be clocked so the gear engages the output shaft properly. The number of teeth on the gear determine how the housing needs to be clocked. You'll see cast-in numbers on the housing which will tell you where it needs to be.