I remember when this kind of "optimization" was done regularly by a great many shoppers on budgets. Back in the day some stores even used to put calculators on the shopping carts.
People used to know how to budget. Apparently the average American is affluent enough to not need to be able to do this any more. I worry that the atrophy of these kinds of practical skills will cause much pain for a great many people at some point down the road.