# Bending algorithm needed

Can someone help me with the formula needed to obtain the following. I need to discount products on a sliding scale. If a customer purchases 2 products, he must get a 15% discount. If he purchases 10, he must get a 30% discount. I don't want a linear slope, but rather as the number of products increases, the increase in the discount decreases.

2 => 15%
4 => ≈20%
10 => 30%


I need to formula with this, which should include a bend factor.

I know how do to this for FV, IV, but not this.

-

## 1 Answer

You might want your discount function something like $$d(n) = 100 k_1 \times (1 - e^{-k_2 n})$$ where $d(n)$ is the percentage discount and $n$ is the number of products purchased and $k_1, k_2$ are constants with $0 < k_1 \leq 1$.

EDIT: Choose $k_1 = 0.31$ and $k_2 = 0.35$.

-
@Sirvam all the formulas you types are showing [Math Processing Error] –  IanC Jan 19 '11 at 3:58
@IanC: Sorry I was editing it and then deleted it by mistake. –  user17762 Jan 19 '11 at 4:08
@Sirvam I'm still seeing errors for all the math. –  IanC Jan 19 '11 at 4:15
Ok, works now... let me check it. :) –  IanC Jan 19 '11 at 4:20
@Sirvam thanks, I can work with that. Is there an easy way to work out the values for k_1 and k_2 to get the 15% and 30% I desire? –  IanC Jan 19 '11 at 4:27