$future = strtotime('25 July 2021'); $now = time(); $timeleft = $future-$now; $daysleft = round((($timeleft/24)/60)/60);