Description: LibreOffice CALC TBILLYIELD functions return incorrect interest rate. Using the following inputs: TBILLYIELD(Settlement; Maturity; Price) (02/25/20, 03/24/20, 99.8775) returns .014718 SHOULD RETURN .01577 as verified with MS EXCEL Steps to Reproduce: 1.TBILLYIELD(Settlement; Maturity; Price) (02/25/20, 03/24/20, 99.8775) 2. 3. Actual Results: returns .014718 Expected Results: SHOULD RETURN .01577 as verified with MS EXCEL Reproducible: Always User Profile Reset: No Additional Info: SHOULD RETURN .01577 as verified with MS EXCEL
please attach a sample file for test.
Created attachment 158065 [details] THIS FILES USES TBILLYIELD - RUN IN CALC AND EXCEL! NOTE DIFFERENCE THIS FILES USES TBILLYIELD - RUN IN CALC AND EXCEL! NOTE DIFFERENCE
RUN ATTACHED FILE IN BOTH EXCEL AND CALC NOTE DIFFERENCE!
[Automated Action] NeedInfo-To-Unconfirmed
Edward, please write here info from LibreOffice's Help-About dialog
hi, have opend the attachement and confirm the same result .014718 Version: 6.4.1.2 (x64) Build-ID: 4d224e95b98b138af42a64d84056446d09082932 CPU-Threads: 4; BS: Windows 10.0 Build 18363; UI-Render: GL; VCL: win; Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE Calc: CL regards
Dear edwardk, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Sirs, I have provided ALL info necessary to reproduce this bug in the original submission. The function TBILLYIELD functions return incorrect interest rate. Using the following inputs: TBILLYIELD(Settlement; Maturity; Price) (02/25/20, 03/24/20, 99.8775) returns .014718 SHOULD RETURN .01577 as verified with MS EXCEL COMPARE THE RESULT OF CALC TBILLYIELD WITH THE MICROSOFT OFFICE EXCEL VERSION! SEE COMMENT BELOW THE RESULT .014718 IS INCORRECT! This should be a simple fix!
https://opengrok.libreoffice.org/xref/core/scaddins/source/analysis/financial.cxx?r=3bf3face#381 (100 / 99.8775 - 99.8775 / 99.8775) * 360 / x = 0.014718 => x = (100 / 99.8775 - 99.8775 / 99.8775) * 360 / 0.014718 = 30 https://support.microsoft.com/en-us/office/tbillyield-function-6d381232-f4b0-4cd5-8e97-45b9c03468ba?ui=en-us&rs=en-us&ad=us (100-99.8775)/99.8775 * 360 / ( DATE(2020,3,24) - DATE(2020,2,25)) = 0.0157693174138322 February has only 28 or 29 days I'm not familiar with finance, and I don't know which result is expected.
https://opengrok.libreoffice.org/xref/core/scaddins/source/analysis/analysishelper.cxx?r=6fc5b1c1#278
Dear edwardk, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp