title: Calculate Number of Days for multiple dates in the same calendar year
body: <p>I am looking for a formula that calculates the number days within the same calendar year for multiple dates. Example: </p>
  
  <pre><code>  ! POSITION 1 START DATE ! POSITION 2 START DATE ! Days@POS 1 ! Days@POS2 ! 
    --------------------------------------------------------------------------
    !     1/1/2014          !      9/8/2014         !   250      !     115   !
  </code></pre>
  
  <p>Also, if there is no date in <code>Position 2 Start Date</code> then <code>Days@POS 1</code> should read as 365 days instead of 250. </p>
  
  <p>I have tried a combination of IF and OR functions together and can't seem to make any progress.</p>