

(function () {
  const second = 1000,
        minute = second * 60,
        hour = minute * 60,
        day = hour * 24;

  let oud = "Sep 30, 2021 00:00:00",
      countDown = new Date(oud).getTime(),
      x = setInterval(function() {    

        let now = new Date().getTime(),
            distance = countDown - now;

        document.getElementById("days").innerText = Math.floor(distance / (day)) + " Days",
          document.getElementById("hours").innerText = Math.floor((distance % (day)) / (hour)) + " Hours",
          document.getElementById("minutes").innerText = Math.floor((distance % (hour)) / (minute)) + " Minutes",
          document.getElementById("seconds").innerText = Math.floor((distance % (minute)) / second) + " Seconds";

        //do something later when date is reached
       
        //seconds
      }, 0)
  }());