diff($datetime2); if($interval->format('%R') == '-'){ return "Trial expired."; } return $interval->format('%a days'); } }