/* Next Business Date Description: Returns next business date after added business days Author: Markus Diersbock Notes: Works with Daylight Savings, excludes holidays */ function next_business_date($start_date, $biz_days_added, $delim = "/"){ for ($i = 0; $i <= $biz_days_added; $i++) { $rtn = getdate(strtotime($start_date." +".($i)." day")); // if Sat or Sun extend days added if ($rtn["wday"] == 6 || $rtn["wday"] == 0){ $biz_days_added++; } } return date("m".$delim."d".$delim."Y", $rtn[0]); }