i would like to calculate working days (except for friday and saturday) between 2dates. how should i do? [code]<? $today = $end_date; $pastdate = $start_tarikh; $explodetoday = explode("/", $today); $stoday = mktime(0, 0, 0, $explodetoday[1], $explodetoday[0], $explodetoday[2]); $explodepastdate = explode("/", $pastdate); $spastdate = mktime(0, 0, 0, $explodepastdate[1], $explodepastdate[0], $explodepastdate[2]); $sDifference = $stoday - $spastdate; $total= ($sDifference / 60 / 60 / 24 ); ?>[/code] it works well to count the number of days without considering friday and saturday are offdays. wht should i add on in above code inorder to count only days except for friday and saturday? thx