[kmymoney] [Bug 396301] Investment Performance by Account YTD Return on Investment result different between version 4.8 and 5.01

Jack bugzilla_noreply at kde.org
Sat Dec 3 00:53:38 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=396301

Jack <ostroffjh at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO

--- Comment #3 from Jack <ostroffjh at users.sourceforge.net> ---
I have not yet looked into your examples in detail, but I think you
over-complicate the calculations.   Starting and ending balances are irrelevant
to return for a single investment.  (It would be the same ROI no matter which
account it took place in.)  Take a look at
https://www.investopedia.com/articles/basics/10/guide-to-calculating-roi.asp. 
(I think mutual funds can use the same calculations as stocks and bonds.)  
First work through it without any reinvestment transactions, nut I agree that
those transactions can be ignored, since they just mean you are selling more
shares than you purchased.  The critical values are total purchase cost and
total sale value.  I won't copy/paste the formula from that link, but after you
review it, let us know if you still think KMM is making incorrect calculations.
Annualized returns can be even more complicated if there is not a single
purchase and single sale.
Separately, your example shows two purchases of 8 and 4, a dividend
reinvestment of 1.5 shares, but a sale of only 10 shares.  What happened to the
other 3.5 shares?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list