title: Time Date Calculation Wrong output
body: <p>i am using laravel 5.5 trying to calculate days and multiply with price</p>
  
  <p>working fine when i select date from drop down but when i type date calculation doing wrong what's happening i don't know</p>
  
  <p>here is my controller</p>
  
  <pre><code>$pick = Carbon::parse($request-&gt;input('pickdate'));
  $drop = Carbon::parse($request-&gt;input('dropdate'));
  
  $lengthday = $pick-&gt;diffInDays($drop, false);
  
  $ptime = str_replace([' '], '', $request-&gt;pickuptime);
  $dtime = str_replace([' '], '', $request-&gt;droptime);
  $picktime = Carbon::parse($ptime);
  $droptime = Carbon::parse($dtime);
  
  $lengthmin = $picktime-&gt;diffInMinutes($droptime, false);
  $car = Car::where('slug', $car)-&gt;firstorfail();
  
  $cprice = $car-&gt;price;
  if ($lengthmin &gt;= '1') {
      $minprice = $car-&gt;price;
  }
  else
  {
      $minprice = '0';
  }
  $price = $cprice*$lengthday+$minprice;
  
  if ($price &lt;= '0') {
      return back()-&gt;with('warning', 'Please Enter Valid Date &amp; Time');
  }
  </code></pre>
  
  <p>here is my view</p>
  
  <pre><code>&lt;div class="form-date-w3-agileits"&gt;
      &lt;div class="form-agileits"&gt;
          &lt;label&gt;Pickup Date :&lt;/label&gt;
      &lt;/div&gt;
      &lt;div class="form-agileits-2"&gt;
          &lt;input type="date" name="pickupdate" style="width: 92%;
          outline: none;
          font-size: 0.9em;
          padding: 13px 10px;
          border: 1px solid #fff;
          font-weight: 100;
          -webkit-appearance: none;
          margin-bottom: 1.4em;
          background: rgba(0, 0, 0, 0.69);
          font-family: 'Amaranth', sans-serif;
          color: #bbb9b9;" required=""&gt; 
      &lt;/div&gt;  
      &lt;div class="clear"&gt; &lt;/div&gt;            
  &lt;/div&gt;
  </code></pre>