Why don't you start by searching the board? Date math routines have been posted in the UDF Forum. Also, if you would have taken a look at the UDF I pointed you to, that one does what you're looking for.
_________________________
There are two types of vessels, submarines and targets.