[Libreoffice-bugs] [Bug 137465] 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 04:26:50 UTC 2020


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

--- Comment #1 from Jack <russell_jackson_ii at hotmail.com> ---
There are supposed to be two different formulas, one for when a bond is
purchased during final coupon period, and one for when the bond is purchased
not within the final coupon period.

Calc does not use the correct formula when the purchase 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/2ba0ccb8/attachment.htm>


More information about the Libreoffice-bugs mailing list