Here's how to figure out how big your emergency fund should be, and how you should invest it ...