First Day on The Job:
0) { return $remain; }}/// end fns $mydate =$_REQUEST["date_day_last"]."/".$_REQUEST["date_month_last"]."/".$_REQUEST["date_year_last"]; $theInitDate=dateadd($mydate,0); $theCurrDate=date("d/m/Y"); $theNewDate=dateadd($mydate,45); $theDaysNumx=daysleft("Event Day", $_REQUEST["date_month_last"], $_REQUEST["date_day_last"], $_REQUEST["date_year_last"]); if($theDaysNumx>0){ $theDaysNum=$theDaysNumx+45; $theDaysNum.=" days"; } else { $theNewDateExp=dateaddz($mydate,45); $theNewDateExp=str_replace(",","",$theNewDateExp); $theNewDateExp=explode(" ",$theNewDateExp); $theDaysNum=daysleft("Event Day", $theNewDateExp[0], $theNewDateExp[1], $theNewDateExp[2])." days"; if($theDaysNum<1){ $theDaysNum=0; }//// }//// ?>

Final Date to Deliver NTO:

Days Left to Deliver NTO: