Juan needs to take a taxi to get to the movies. The taxi charges $3.50 for the first mile, and then $2.75 for each mile after that. If the total charge is $18.63, then how far was Juan’s taxi ride to the movie?