$ckdate1 = strtotime("$date_1");
$ckdate2 = strtotime("$date_2");
$cktime = $ckdate1 - $ckdate2;
$ckdate = floor((($cktime/60)/60)/24);
$ckdate2 = strtotime("$date_2");
$cktime = $ckdate1 - $ckdate2;
$ckdate = floor((($cktime/60)/60)/24);