discount(p) = d_min * ((d_max / d_min) ^ ((p - p_min) / (p_max - p_min)))
net_price(p) = p * (1 - discount(p))