Ok, basically I have a base price r, and a base stock amount a for item y. Item y's price is x.
Lets call the item a pencil.
so: r is a base price, lets say $1. a is the typical base stock, lets say 100. y is the current amount in stock. x is the price of the item.
If half the normal supply of pencils is available, then the price goes up, or x = r * (a / y), which would be x = 2 if only half stock available, or y=50.
The flaw with my primitive system is if the stock dwindles to only 1 left, x becomes 100, and nobody in their right mind is going to pay $100 for a pencil!
How can I create a mathematical equation that would create a slope in this ridiculous graph, so that, lets say, if stock is 50, price is 2, but if stock is only 10, the price is 2.50... There is a word for what I'm trying to describe, and it's on the tip of my tongue, but I can't find it...
I hope I'm conveying this question correctly!! lol, I'm so mind-f*cked right now...