r/MathHelp • • Jul 24 '20

I need help creating a compound interest formula!

-My goal is to create a compound interest formula that accounts for an annual contribution.

-However, I want this formula to also account for an increase in x dollars in the contribution every year.

-For example: you start out with $1,000, and it's invested at 6%. In year 1, you contribute $100. In year 2, you contribute $200. In year 3 you contribute $300, ect, ect.

-Some formulas to help you:

•CI w/o annual contributions: formula

•CI w/ annual contributions: formula

11 Upvotes

4 comments sorted by

2

u/YourFavouriteTA_123 Jul 25 '20

Let's think about it this way:

You earn 100$ per year. Disregarding interest, inflation etc. your money as a function of time will be:

M(t)=100[$/year]*t[years]

We can include the effect of interest, return on investment or inflation by multiplying this by the following factor:

(1+r)t[years]

So in total we have:

M(t)=100[$/year]*t[years] * (1+r)t[years]

This makes sense, right? We continuously add money earned and multiply this by a factor to account for appreciation/depreciation.

I made a spreadsheet to model the effect. You can edit it as you please:

https://docs.google.com/spreadsheets/d/1n-HBDlmrJIt4vAB4bnVbyD-GF8pAVmpIJzzgJApBaeo/edit?usp=drivesdk

1

u/AutoModerator Jul 24 '20

Reminder:

  • What have you tried so far? (See Rule #2)

  • Please don't delete your post. (See Rule #7)

We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/fermat1432 Jul 25 '20

This might be hard. Look up annuities.

1

u/are-we-alone Jul 25 '20

These aren’t going to be particularly pretty formulas, but the way it’s done is by adding together compound interest terms for each of the contributions.

Sometimes you get lucky and can group several of the contributions together - for example, if you are contributing the same amount every time period, every time period is the same, the interest rate per time period is constant, then you can group these together in a geometric series. Geometric series can be written in a condensed form, which is the second term in the “w/ annual contributions” thing you linked.

In general though, the cash flows and interest rate are variable, so you’ll add up each of these contribution terms.