How a beer at a uni bar sparked an idea that could help save millions