The short answers is that food will last 4 hours without electricity if you keep the door to the refrigerator closed. Once meats and protein foods are kept at over 40 degrees F for more than 2 hours, you need to throw them out. This is because these foods have a pH of 7 or so, and bacteria can have quite a celebration when these foods reach room temperature — which is the temperature at which bacteria thrive.
Save the peanut butter and canned foods for last and consume meat, eggs, and milk first.
If you haven’t lost electricity yet, GET MEATS INTO THE FREEZER SO YOU CAN BUY YOURSELF A LITTLE EXTRA TIME!
Best of luck!!!