Calculate the annualized return on investment to compare investments held for different time periods.