Question

I am writing a Java application to calculate interest. The formulas for Simple, Compound, and Continuously Compounded interest use years to calculate the amount accumulated, but I want to use days so that my software updates more frequently. What formulas should I use? This is an Android project with JodaTime implemented for handling dates.

Was it helpful?

Solution

Compound Interest Multiple = [1+(Annual Interest in decimals/365)]^(number of days).

(The above assumes interest is applied or earned daily.)

Although not asked as a part of your question...if you want CONTINUOUS compounding,

Compound Interest Multiple = e^(Annual Interest in decimals*Time (as a fraction of years))

(The above assumes interest is applied or earned continuously.)

OTHER TIPS

In finance, interests follow a yield curve, so the interest waries base don the number of days in the period. e.g. http://en.wikipedia.org/wiki/Yield_curve you can see even for US rates (for the US dollar) it varies from day to day. http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yield

Another compilcation is that there are different ways to calculate daily rates. One way to calculate rates is to assume there are 365 days in the year (even for leap years), but 360 is more common, some bonds only count working days. In short it all depends on the currency.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top