title: Count days, hours and minutes to a specific date with javascript
body: <p>I have this script that counts the days, hours and minutes from the time at the moment until May 8 at 23:59:59 - 1 second before May 9, and displays it as a counter with FlipClock, but for some reason it is missing 2 days and 1 hour. From today March 23 at 10:37 (24 hr clock) there are 48 days, 13 hours, 23 minutes hours, but my clock shows 46 days, 12 hours, 23 minutes.</p>
  
  <p>Should be very simple, but I cannot figure out where the 2 days and 1 hour are gone missing.</p>
  
  <p>I have this javascript:</p>
  
  <pre><code>// Grab the current date
     var currentDate = new Date();
  
  // Set the date to May 8
     var futureDate = new Date(2016, 04, 08, 23, 59, 59);
  
   // Calculate the difference in seconds between the future and current date
     var diff = futureDate.getTime() / 1000 - currentDate.getTime() / 1000;
  
     var clock = new FlipClock($('.clock'), diff, {
         clockFace: 'DailyCounter',
         countdown: true,
         showSeconds: false,
         language: 'da'
     });
  </code></pre>