What you need to do it multiply the gallons in your car with the miles per gallon to see how many miles you can travel. So 8x30 is 240 miles so you need to make up 170 mpg. So you divide 170 by 30, so you would need about 5.6 gallons to complete your 400 mile trip