Giving the following investment performance.
I bought a stock at price 1k during 1/1/2000. At 31/12/2002, the total stock value worth 8000.
01/01/2000 -1000
31/12/2002 8000
If we calculate using XIRR,
[Image: KV8br.png]
we can know this investment gives us average yearly return 1.0 (100%)
However, if I want to know what is "The total return for 3 years"
Is the following calculation makes sense?
(8000 - 1000) / 1000 = 7.0 (700%)
By the way, I just finished implementation of XIRR in Java : https://github.com/yccheok/xirr
I tested against XIRR in Google Spreadsheet. It seems correct so far. Feel free to contribute. The source code is released under public domain. Everyone is free to modify and use it in any way you want.
I bought a stock at price 1k during 1/1/2000. At 31/12/2002, the total stock value worth 8000.
01/01/2000 -1000
31/12/2002 8000
If we calculate using XIRR,
[Image: KV8br.png]
we can know this investment gives us average yearly return 1.0 (100%)
However, if I want to know what is "The total return for 3 years"
Is the following calculation makes sense?
(8000 - 1000) / 1000 = 7.0 (700%)
By the way, I just finished implementation of XIRR in Java : https://github.com/yccheok/xirr
I tested against XIRR in Google Spreadsheet. It seems correct so far. Feel free to contribute. The source code is released under public domain. Everyone is free to modify and use it in any way you want.