The emergency fund ratio is calculated by dividing your total cash available by your monthly non-discretionary expenses. Non-discretionary means that these expenses have to be paid regardless of your financial situation. These expenses include items like rent, mortgage, food, loan payments, etc. On the other hand, discretionary items like entertainment expenses (watching a movie, going out to eat at a fancy restaurant, etc.) can be excluded from this calculation.