it doesn't add together... it just looks at what the highest amount you paid at once and compares that to the prices of the available downloads. I don't know if folks set sales and prices intentionally to manipulate this behavior, but it does make buying something on sale that isn't finished a bit unappealing since it likely means you'll have to buy an updated version later if it isn't ALSO on sale.