John,
[offtopic]
Without trying to post all of the formulas in all of the cells let me see if I can illustrate what I'm dealing with by showing you that portion of the spreadsheet that is visible to the user:
Beginning Ending Years Months Days PBD
01/01/04 02/28/05 1 2 01/01/04
03/17/07 04/26/07 1 10 01/17/06
09/01/07 11/01/07 2 1 05/21/06
The column labeled PBD is initially set equal to the Beginning Date of the first row. After that the PBD is derived by taking the Beginning Date in the next row and subtracting the PBD from the previous row to arrive at the interval in years, months, and days. This is then added to the previous PBD to determine the current PBD. Since one of the constraints is the 30 day month, the formulae have to be adjusted to subtract 1 day from any 31 day month, and to do all of the convoluted logic necessary to determine how many days are "actually in" February. For example, in 2006 (a non-leap year) Feb had 28 days; therefore, if the entire month was served credit is established for 30 days - if entitlement terminated on the 27th, even though there is only one day lost by the calendar, only 27 days accrue for credit. You can see how much fun this is going to be for a leap year.
I
am using DAYS360 in some of these calculations, but by itself it will not yield a consistently correct answer for the PBD date. I shot an e-mail the boys in Redmond, WA a couple of years ago, explaining the problem and asking if there was some built-in that I was missing that would help; included was an unprotected copy of my spreadsheet so that they could see what was needed and what I had done to get it to work. The e-mail was acknowledged as received and nothing else has been heard from that quarter since.
I would be happy to set a link to a slightly modified copy of this spreadsheet (certain identifying items
must be removed) but it will have to be done later from my home computer; if I try to link with this one the IT and Legal staffers will be on me like white on rice.
[/offtopic]
----------------------------------------------------------------------------------
"A committee is a life form with six or more legs and no brain." -- L. Long