composition of if statement to realize missing calculation to figure current gallons of gas in tank.