The calculation
How this estimate works
Your shortest cycle added to your last period start gives the earliest your next period could arrive. Your longest gives the latest. The gap between them is the window, and it widens with however much your cycles actually move.
The fertile window uses the same two numbers through the calendar method, subtracting 18 from your shortest cycle and 11 from your longest. It stretches to cover an early ovulation in a short cycle and a late one in a long cycle, rather than splitting the difference.