The sooner you think you need the money, the less risk you should assume. If you have a pot of money put aside to buy a house, and you are planning to purchase it this year, you should probably move it into a short-term bond fund. The same is true for your emergency money.

