<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - YIELD function in Calc provides wrong result (different result than Excel), when there is one coupon period or less until redemption."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137465">137465</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>YIELD function in Calc provides wrong result (different result than Excel), when there is one coupon period or less until redemption.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.6.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>russell_jackson_ii@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:
<a href="https://support.office.com/en-us/article/yield-function-f5f5ca43-c4bd-434f-8bd2-ed3c9727a4fe">https://support.office.com/en-us/article/yield-function-f5f5ca43-c4bd-434f-8bd2-ed3c9727a4fe</a>


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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>