The Settle founder turned one clunky back-office chore into a five-year study of how consumer brands buy time, inventory and room to grow.