How to find formula for maximum distance for specified WalkSpeed?

Finding a client’s ping can be tricky. If an exploiter wanted, they could delay their ping back to the server in order to give themselves a more lenient distance allowance. What you could do is keep multiple previous records of player positions, so if a player only travels 8 studs on check 1, but 24 studs on check 2, with a walkspeed of 16, the two would equal the allowance of 32 studs over 2 seconds. Of course people may stutter for more than a few seconds, so you may want to keep record of 5 or 10 per player depending on your memory usage and performance preferences.