Use this calculator to determine how much cash you should keep on hand based on your portfolio size and risk tolerance.