I'm programming a site on which I sell services, and the more the customers spends, the more discount they will have. Please have a look at the diagram below. Spending 700 USD will result in 5% discount. I don't want the discount to ever go above 10%.
How do I write a formula for this graph, crossing the points in the image below?
Thanks!

- EDIT: The points don't need to be crossed perfectly - only approximately!
- EDIT 2: I'll give a few example values: y=5 & x=700, y=7 & x=2000, y=9 & x=5000, y=9.5 & x=10 000