Determine how much you should have in your emergency fund based on your monthly expenses and risk factors.