Flange size

How do I know what size I need ?