0

I'm trying to figure out how some investments based on compounding interest with bi-weekly contributions compare. One lists the APY, and the other lists the APR. I'm writing a program for comparing multiple interest rates, and want to make sure my math is right.

For calculating accrued from APY is this right? (I divide the r by n, and multiply n by r to take into account periods of more than once a year):

enter image description here

How would the formula differ for APR? Do I just need to recursively call $P(1+r/n)^{nr}$, with the $P$ updated each term?

ZeroPhase
  • 229
  • That will depend on how you define APR and APY (e.g. UK and US practice may vary) – Henry Apr 03 '22 at 01:05
  • @Henry Neither. This is crypto so I believe the difference between APY and APR is APY has compounding factored in, while APR does not.

    I have the APR or APY of each project, and want to calculate the accrued interest from APR, and convert to APY to compare. So, how would the APR calculation differ? Everything I've found for APY that does not have contributions factored in still gives $A=P(1+r/n)^{n/r}$

    – ZeroPhase Apr 04 '22 at 16:09
  • This answer gets into the differences between APR and APY and how to convert between them: https://math.stackexchange.com/a/4349054/860916 – Amaan M Apr 04 '22 at 18:13

0 Answers0