SVOboy -
Ok. I don't think that equation is right. Here's what happens to me :
Code:
( $total_indy_gallons * ((100 + $epa)/100)) - $total_indy_gallons
=>
( $[827.08] * ((100 + $[27])/100)) - $[827.08]
=>
( $[827.08] * ((127/100)) - $[827.08]
=>
( $[827.08] * (1.27) - $[827.08]
=>
1050 - 827
=>>>>>>>>>> 223
Now, assuming that "$total_indy_miles" exists as a variable *AND* $epa is not zero, I wrote this :
Code:
$saved_indy =
round
(
(
( $total_indy_miles / $epa) - $total_indy_gallons
), 2
);
CarloSW2