The math behind it is quite simple. Speed is calculated by measuring the rotation speed of a wheel. Once the wheel diameter is known, you convert the wheel RPM to speed across the roadway.