Though I'm sure there are plenty of other scripts out there check out this article
http://www.sqlservercentral.com/columnists/achigrik/udfexamples.asp
It contains several datetime related functions incl. one to calculate workdays.
[font="Verdana"]Markus Bohse[/font]