How it works
Enter what one occasion costs, how many times a year it happens, the years and the return you would expect. Leave the return at zero to skip the investing part. The page shows the yearly cost, the total, the invested value and the difference.
Formula
Total = yearly cost x years.
Invested value = yearly cost x ((1 + rate)^years − 1) / rate, with each year's money added at the end.
Sources
Example
Cost each time: 4.5; Times a year: 250; Years: 10; Return if invested %: 6. Total spent: $11,250
Frequently asked questions
Why does the invested figure come out so high?
Each year's money keeps growing, so the early deposits count for a lot and the last ones count for little.
Does this mean the habit is waste?
No. It only shows the price. A habit that gives you something real is a purchase, not a leak.