Put the formula into Excel and I get a "loop" function. -50 at 0, 250 at 14, -50 at 27,...-50 at 60.
Either I did something wrong or the COS doesn't mean cosine.
It would be this way.
(Distance * Pi/ 60)
This number -Pi
Then, take the Cosine of that, and then multiply by 200.
Unless you are at 60 or higher in which case you would use the other half the formula of Number+distance/2