first for riding u need to give $5. you have total $40 in ur hand. so lets give $5 for riding on it. now u have $40-5 = $35 for going miles. charges for a mile = $0.7 so number of miles u can go = 35/0.7 = 50 miles! Hope that answers ur question brother !