Big thing that jumps out to me, is you're using pulley diameters, not number of teeth.
Although diameters will give you a rough calculation, it's not going to give you an exact one.

You also need to count the teeth on the pinion, and find out what pitch the rack is.