[Libreoffice-bugs] [Bug 137465] New: YIELD function in Calc provides wrong result (different result than Excel), when there is one coupon period or less until redemption.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 14 02:40:33 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=137465

            Bug ID: 137465
           Summary: YIELD function in Calc provides wrong result
                    (different result than Excel), when there is one
                    coupon period or less until redemption.
           Product: LibreOffice
           Version: 6.4.6.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: russell_jackson_ii at hotmail.com

There are supposed to be two different formulas, one for when the maturity is
within the final coupon period, and one for when the maturity is not within the
final coupon period.

Calc does not use the correct formula when the maturity is within the final
coupon period. Excel does use the correct formula. Thus the YIELD will result
in different values depending on whether using Calc or Excel.

The correct formula can be found here:
https://support.office.com/en-us/article/yield-function-f5f5ca43-c4bd-434f-8bd2-ed3c9727a4fe


Example: 

YIELD(10/25/20,12/30/20,.02,100,100,2,4)

Will result in .01993617 in Calc, but will result in .01987303 in Excel.

This is a very bad bug, because in the real world, bonds are bought and sold
all the time during the final coupon period. This makes the YIELD function not
reliable enough for use.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201014/044fd5cc/attachment.htm>


More information about the Libreoffice-bugs mailing list