Ok, i'm going to assume the dates are in standard MySQL format (2002-05-31). Let's say the pickup date is May 13th and the dropoff day is June 3rd:
<?
$pickup_date = '2002-05-13';
$dropoff_date = '2002-06-03';
$price = '36.00';
$pickup_timestamp = strtotime ($pickup_date);
$dropoff_timestamp = strtotime ($dropoff_date);
$length = ($dropoff_timestamp - $pickup_timestamp) / 86400;
$total = $length * $price;
echo "
pickup date: $pickup_date<br>
dropoff date: $dropoff_date<br>
length: $length days<br>
price: $$price<br>
total : $$total
";
?>
Obviously this is a simple example, you'll have to tweak depending on how the date and price data is coming into the script.