<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:winfrieddonkers@libreoffice.org" title="Winfried Donkers <winfrieddonkers@libreoffice.org>"> <span class="fn">Winfried Donkers</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Implementation of YEARFRAC function inconsistent with Excel"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=69569">bug 69569</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>ASSIGNED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Implementation of YEARFRAC function inconsistent with Excel"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=69569#c20">Comment # 20</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Implementation of YEARFRAC function inconsistent with Excel"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=69569">bug 69569</a>
              from <span class="vcard"><a class="email" href="mailto:winfrieddonkers@libreoffice.org" title="Winfried Donkers <winfrieddonkers@libreoffice.org>"> <span class="fn">Winfried Donkers</span></a>
</span></b>
        <pre>(In reply to Winfried Donkers from <a href="show_bug.cgi?id=69569#c19">comment #19</a>)
<span class="quote">> (In reply to dahrion from <a href="show_bug.cgi?id=69569#c17">comment #17</a>)
> > I had to implement the yearfrac function and can confirm that the error is
> > in the specification.
> > Specifically in ODFv1.2 part 2, §4.11.7.7 line 8
> > it shoul be not(A)
> > also in line 9 the between is inclusive

> There seems to be another aberration in  ODFv1.2 part 2, §4.11.7.7.
> I'm checking this now.</span >

That was a false alarm. It looked as if not all cases when line 7 does not
apply (i.e. F is false) were covered, but they are.

I can confirm that line 8 is incorrect and should be
   8.Otherwise, if (not A) and is-leap-year(year(date1)) then return 366 .

I will try to have a proposal for change of ODFF part 2 §4.11.7.7 submitted.
And then I will change the source code for YEAFRAC to reflect the proposal.</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>