Emergency fund calculator — the price of the buffer
The advice to hold three to six months of expenses in cash is nearly universal and almost never costed. It is not free: the buffer sits at a deposit rate for decades while the same money invested would have compounded at a higher one. This page puts a number on that gap, and then makes the argument that the number is a premium rather than a loss — because the thing the buffer buys is not returning, it is never having to sell during a fall.