Suppose you have $1000 dollars, and you are applying 40% discount first, then 42% discount second.
What is the total discount?
1000 - 0.4*1000 - (0.42 * (1000 - 0.4*1000)) = 348
I - D1*I - (D2 * (I - D2*I)) = O
I - D1*I - D2*I + D1*D2*I = O
I(1 - D1 - D2 + D1*D2) = O
We know that:
I*f = O
I - (1 - f)I = O
So plugging the above as f
. Then:
I - (1 - (1 - D1 - D2 + D1*D2))I = O
The resulting percentage is:
(1 - (1 - D1 - D2 + D1*D2))
1 - 1 + D1 + D2 - D1*D2
D1 + D2 - D1*D2
Tadaa!