Sometimes you buy more than one thing at a time. The heuristic might be something along the lines of, if that store is 33% cheaper on that calculator it might be 33% cheaper on other things, and you might end up saving a lot more than $5. If the calculator is only 4% cheaper, your savings will only work out to near $5, which might not be worth your 20 minutes.
From Tversky and Khaneman's "The Framing of Decisions and the Psychology of Choice" (Science, Vol. 211, No. 4481, 1981):
This one's a killer. Money is supposed to be fungible, but these observations really highlight how difficult it is to really behave as if you believed that. So, aspiring rationalists, how might we combat this in ourselves? Maybe it would help to consciously convert between money and time: if you value your time at 25 $/hr, then the cost of a twenty-minute drive is 25 $/hr * (1/3) hr = $8.33 > $5, so you buy the calculator in front of you in either case. So this heuristic at least takes care of the calculator problem, although I would guess it fails miserably in other contexts, I currently know not which.
Another takeaway lesson is to ignore advertisements boasting that a product is currently such-and-such percent off. We don't care about the percentage! How many minutes are you saving?