Bug 413667 - The annualized return calculation seems to be incorrect.
Summary: The annualized return calculation seems to be incorrect.
Status: RESOLVED DUPLICATE of bug 416274
Alias: None
Product: kmymoney
Classification: Applications
Component: reports (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 12:49 UTC by avizit
Modified: 2020-01-17 18:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot showing the issue with calculation (164.00 KB, image/jpeg)
2019-10-31 12:49 UTC, avizit
Details
image showing my annualized percentage where the percentages are off by one (345.85 KB, image/png)
2020-01-15 08:37 UTC, avizit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description avizit 2019-10-31 12:49:26 UTC
Created attachment 123618 [details]
screenshot showing  the issue with calculation

SUMMARY
The report for "investment performance by account" probably has incorrect calculation of annualized return for aggregate. If i have two investment accounts  say account1 and account2 . For me it seems the annualized return for one holding of account1 is always same as total annualized return of account2.
I have put a screenshot showing the same.

STEPS TO REPRODUCE
1. have multiple investment account and multiple holdings
2. generate report for investment performence.
3. 

OBSERVED RESULT
two annualized return values which are not expected to be same always are always same

EXPECTED RESULT
the two values should be different at least once in a while.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 avizit 2020-01-15 08:36:18 UTC
I have similar problem . In my case it seems the annualized percentages per account is off by one. as in total annualized return for account 1 is shown in account n , for account 2 in n -1 .. and so on .. it seems like a off by one error. see my second attachment
Comment 2 avizit 2020-01-15 08:37:26 UTC
Created attachment 125137 [details]
image showing my annualized percentage where the percentages are off by one

as is clear from the image and the red arrows , the percentages seems to be correct but in the wrong rows.
Comment 3 Thomas Baumgart 2020-01-17 18:08:37 UTC

*** This bug has been marked as a duplicate of bug 416274 ***