Patio11 has a fantastic writeup on exactly this: https://www.bitsaboutmoney.com/archive/regulation-e/