input
- Amount Invested – The amount initially invested
- Amount Returned – The total amount you received at the end of your investment.
- Years – The length of your investment in years
output
- Gain = Amount Returned - Amount Invested
- RoR = Gain / Amount Invested
- Annualized RoR = (Amount Returned / Amount Invested) ^(1/years) -1
Notes
- Quarters are accepted for the number of years of your investment. This will be expressed in decimal (0,25)