Here is a math function I really want to have a nice formula for :)
I tried in excel, but didn't find one that got a nice curve.
I have a game where you have 2minutes to play. if you are fast it will give you a time bonus. max bonus is 1000. lowest is zero.
If you have more than 80seconds left, you will get the full bonus. if you have less than 30sec you get zero. between those values, the "time bonus" will be based on your remaining time.
The time is stored in a global variable, starting at 120.
See my illustration :D
Any one that can help out with a formula to calc this, just approximate?