Quote:
Originally Posted by mhmitszach
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.