Başlangıç ve bitiş tarihini girersen bu kod işine yarayacaktır.
$nowDate = strtotime(date('d.m.Y'));
$stopDate = strtotime("28.03.2018");
$count = ($stopDate-$nowDate)/86400 ;
echo round($count);