Compute ROI and annualized return from invested, returned, and time inputs to evaluate investment performance.