Dang, this almost worked but not quite:

INT(((7+X-StartDay+DurationInDays)/7)-1))

I'm assuming you have an INT/ROUND function at your disposal. Do you have an offset system date/days function?
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.