What about something like this...
<?php
$start = strtotime("1/20/2003");
$end = strtotime("2/24/2003");
/* Friendly number of days in the timespan */
$span = ($end-$start)/86400;
/* Initialize the number of workdays */
$workdays = 0;
/* Initialize a variable variable ;) */
$i = $start;
while($i <= $end) {
if(date(D,$i) != "Sat" and date(D,$i) != "Sun"){
$workdays = $workdays+1;
}
$i = $i + 86400;
}
echo "The chosen span of ".$span." days contains a total of ".$workdays." working days.";
?>
EDIT: You'll want to account for holidays, eh!