Calculating Interest for Investments