Max is taking a cab in New York City. The fair is calculated as a base charge of $3.00 plus an additional $2.00 per mile traveled. It is also customary to leave a two dollar tip. If Max wants to spend exactly $20 how many miles can he travel?