gap
Gap under your door:
Rug thickness (pile and backing):
Flat-weave
Low pile
Medium pile
Shag
Add a rug pad (about 4 mm; check yours)
Set the gap you measured, pick a rug, and see how much space is left. Presets are rough ballparks, not product specs.