I know there’s an RPM value (gauge) in the A-chassis.
If there’s a transmission set up then the rpm changes according to the engine rpm and what gear the transmission is in, not the vehicle speed in mph or km/h
It should be finding the ratio of the current gear, then using that on the RPM of the wheels, which you can find by using funny circumference calculations.
(a 1:2 gear ratio here would be 2 rotations in wheels for every 1 rotation in the engine)
As @TestyLike3 said, that’s not how engine speed (rpm) works compared to vehicle speed.
For example my car has a 4 cylinder engine with the max (red line) rpm marked at 6000 rpm.
Normally it cruises in 5th gear at 2000 rpm at 80 km/h.
4th gear 2000 rpm is about 65 km/h.
3rd gear 2000 rpm is about 40 km/h.
2nd gear 2000 rpm is probably 25 km/h.
When I start in first gear I can only go about 10 km/h before it gets to 2000 rpm.
If I don’t shift out of 3rd gear and get up to 6000 rpm (screaming) I’m probably doing 120 km/h.
It depends what ‘gear’ the transmission of the A-chassis is using.
Try driving the model with the transmission set to automatic and accelerate in a straight line. You’ll see the rpm gauge increase until the transmission changes gears, then the rpm drops down again but the vehicle speed stays the same. As the speed keeps increasing you’ll see the rpm rise again, and suddenly drop down, then rise and drop each time it changes gears.
Try it again with the transmission set to manual. You’ll see that when you change into first gear your car won’t go that fast, but the rpm will be maxed out until you change to second gear.
Why are you trying to calculate all of this when the A-chassis does it for you?