The cost of renting a car is $49.99 per day, plus $0.26 per mile. John rents a car for 5 days and is charged $270.23. How many miles did John drive the car?