it adapts to your most current mpg. so if you've been stuck in traffic, it will give you a good estimation of how many miles are left before you run out. same goes if you're on the highway: it's gonna read high enough assuming that you're continuing the same pace.
if you want to know how many gallons are left: WHY NOT LOOK AT THE GAS METER?