How it works it out
A cheaper price only saves money on the fuel you put in, but the extra driving costs money on every trip there and back. So for each servo it adds up three things: what you'd pay for the same amount of fuel at that price, the fuel your car burns on the extra distance (bought at that servo's price, since you'll replace it), and, if you gave your time a value, the minutes it takes. The one with the smallest total wins, but only if it beats the servo on your way by at least fifty cents, because nobody should drive across town for loose change.
It also works the problem backwards. For each cheaper servo it tells you how much you'd need to be putting in before the trip pays for itself, and how far out of your way that price would still be worth chasing. A small top-up rarely justifies a detour; a fill from near empty often does.