a simple mileage calculator in bash