The day Britain voted on European Union membership, I was cramming for an exam on portfolio construction the next morning.