Steaks rest 5 to 10 minutes, chicken breasts about 5, whole chickens and pork roasts 15 to 20, and a large beef roast up to 30. Cut sooner and a lot of the juice ends up on the board instead of in the slice.
When meat hits a hot pan or a hot oven, the muscle fibers tighten and push moisture toward the center. That center is under pressure. A knife through it at that moment opens a path, and the liquid runs out. A rest lets the fibers loosen and the liquid move back through the cut, so a slice stays wet from edge to center.
Size sets the clock. A thin pork chop equalizes in a few minutes. A prime rib holds a much larger temperature gap between the crust and the middle, so it needs closer to half an hour. If you are cooking more than one steak, rest time is also useful kitchen time: you can finish the sauce, dress the salad, or warm the plates while the meat settles.
Tent loosely with foil only when you need to keep a large roast from going cold. A tight wrap traps steam, softens a hard-won crust, and can keep the interior climbing past the doneness you wanted. A steak off a hot pan is usually fine on a warm plate, uncovered.
Resting is not the same job as carryover, though the two happen at the same time. Carryover is the last few degrees of cooking that happen after the heat is off. Resting is about the juice. You still pull the meat a little early so those extra degrees land where you want them, then you wait before you cut.
Leave the meat on a warm plate or a board with a lip, not a rack over the sink. Any juice that does come out should go back over the slices or into the pan sauce, not down the drain.
On a restaurant line, a steak does not go from the pan straight onto a board under a knife. It sits, the sauce is finished, the plate is built, and only then is it sliced or served. The wait is part of the cook, not a pause after it.
Times and the foil question are in How Long to Rest Meat. More technique notes at Chefitt.