title: How to calculate the different between two datepickers
body: <p>im trying to calculate the date different for a two datepicker in JavaScript.  I tried following other posts, but everytime i calculate the date diff * price, but i'm not getting a result.  Can someone please direct me into the right direction in order to accomplish my goal in finding date differential between two datepickers.</p>
  
  <pre><code>    //input/saving data for the next form
  $(".next").click(function(){
  start = $('#checkin').val();
  ends = $('#checkout').val();
  diff = (ends - start);
  days = diff/1000/60/60/24;
  
  //roomPrice = price inserted into selection type(Single = 65, Double = 100, Suite = 120)
  roomPrice = Rprices[selectType.value];
  
  //preparing form5
  fields = [$('#FirstName').val() + ' ' + $('#LastName').val(),
  $('#phone').val(),
  $('#email').val(),
  $('#StreetAddress').val(),
  $('#City').val(),
  $('#state').val(),
  $('#zip').val(),
  $('#checkin').val(),
  $('#checkout').val(),
  $('#RoomType').val(),
  $('#NumOfPeople').val(),
  document.getElementById("total").value = days * roomPrice];
  </code></pre>