When to Save Your Money and When to Invest