|Date: ||Wed, 20 Oct 1999 11:29:07 -0400|
|Reply-To: ||"Kowalczyk, Andrew" <AKowalczyk@NT.DMA.STATE.MA.US>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||"Kowalczyk, Andrew" <AKowalczyk@NT.DMA.STATE.MA.US>|
|Subject: ||Re: a program to calculate person-years|
Be careful about your definition of "correct" - many leap day babies
celebrate their birthday on Feb 28.
For many years I worked for a large life insurance company - in this leap
day instance we generally picked the day that would be most favorable to the
customer. If being at a lower age meant you qualify for a lower rate then
we used March 1 but if you had to obtain an age to receive a benefit then we
used Feb 28.
> -----Original Message-----
> From: F a b r i z i o [SMTP:Fabrizio1@USA.NET]
> Sent: Wednesday, October 20, 1999 3:57 AM
> Subject: Re: a program to calculate person-years
> age = floor ((intck ('month', [birth], [today])
> - (day ([birth]) > (day [today]))) / 12);
> It also works correctly
> for people born on Feb 29. Their lage increments
> on Feb 29 in leap years, on March 1 otherwise.