So I am making an attack timeout based on a speed rating for a program that I am writing, but I am no genius when it comes to math. As it is i have a formula like so `speed = lambda x: x/50` The base speed rating defaults at 100, so the attack would occur every two seconds at `speed(100)`. Now what I want is for the attack to occur faster at a higher speed rating, and slower at a slower speed rating. I.e. `speed(98)` would return something higher than 2, while `speed(101)` would return something lower than 2. These numbers are just examples but the main point is that is there a formula that can return a lower number based on a higher base number, and vice versa?

Example: `speed(101); returns x < y` and `speed(98); returns x > y` y being a constant number such as 2.