added function to clculate true mpg