tried making a mileage calc, functionality doesn't work