Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,141 of 9,834    |
|    Liz McGuire to Jeanette    |
|    Re: PLEASE HELP with CALC for MIN & MAX    |
|    09 Feb 07 14:14:17    |
      From: liz@paradoxcommunity.com              Jeanette,              1 through 10, inclusive, includes a total of 10 numbers.              10 - 1 = 9              1 is subtracted, so there's only 9 numbers left.              The first date range (2005) has 108 days, inclusive. The second has 91 days       (inclusive). Together, there are 199 days (inclusive).              However, when you're doing date math, "EndDate - StartDate" **subtracts the       start date**. In other words, the StartDate is not being included in the       count of days. If you want to be inclusive, do:              (EndDate-StartDate)+1              ...then you'll get 108 days in 2005, 91 days in 2006 and 199 days total.              HTH,              Liz                     "Jeanette" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca