I'm working on a project that requires me to use SPSS. I'm more comfortable with R, but I need to stay within the SPSS environment, and I won't be able to use the R plugin.

My problem relates to fiscal-years, and adjusting for the additional day they introduce. For example:

```
* fake data to permit syntax to be run.
data list free/number.
begin data
1
12
123
1234
12345
end data.

* calculate the number of days between the start/end of a fiscal year.
* this period contains a leap-day that I need to adjust for, but it returns 365.
compute begin1 = date.mdy(10,01,1999).
compute end1   = date.mdy(09,30,2000).
compute diff1  = datediff(end1, begin1, "days").

* this calculation behaves as expected-- producing 29 days.
compute begin2 = date.mdy(02,01,2000).
compute end2   = date.mdy(03,01,2000).
compute diff2  = datediff(end2, begin2, "days").
execute.

```

To get around the problem I'm experiencing with `datediff()`, I was planning on just adding a day if a row's interval between begin/end contains 2/28 and 3/1, during a leap year. However, I'm not sure of the best way to do this in SPSS. I've checked some SPSS list-servs, but haven't seen a solution to this type of test/calculation.