An economic model of grocery shopping frequency