See here >> http://www.wikihow.com/Calculate-Your-Car%27s-Fuel-Efficiency-%28MPG%29
This is a Simple Dialog Demo.