View Single Post
Old 05-08-2009, 08:39 AM   #13 (permalink)
tasdrouille
Master EcoModder
 
tasdrouille's Avatar
 
Join Date: Jan 2008
Location: Mirabel, QC
Posts: 1,672

The Guzzler - '08 Hyundai Elantra GL
90 day: 33.12 mpg (US)

Got Soul? - '11 Kia Soul 2U
Thanks: 35
Thanked 86 Times in 57 Posts
Quote:
Originally Posted by mhmitszach View Post
Let's see it!
City mpg of other vehicle to compare to = cmpg
Highway mpg of other vehicle to compare to = hmpg
Distance driven = D
% of tank driven in the city = %C
Cost per gallon = $G
Cost of fillup = $C

((D/cmpg*%C)+(D/hmpg*(1-%C)))*$G-$C = $ saved (or lost) vs driving an other vehicle with properties cmpg and hmpg.

instarx, priority rules for arithmetic say * takes precedence on + so the double parenthesis aren't really needed. But for those who could be confused it removes all doubt, I agree.
__________________



www.HyperKilometreur.com - Quand chaque goutte compte...
  Reply With Quote