A Stanford behavioral strategist on three opportune moments to save money