function writeCountDown(date) {
  var currentDate = new Date();

  var timeLeft = date.getTime() - currentDate.getTime();
  var days = Math.floor(timeLeft / (1000 * 60 * 60 * 24)) + 1;
    
  document.write ("<strong>[");
  if (days <=0)
   document.write (0)
  else
   document.write(days)
   document.write (" days left]</strong>");
}