Everyone knows how Frodo's quest in The Lord of the Rings commences. After Bilbo pulls his disappearing act at his 111th birthday celebration, Gandalf suspects something sinister about the magical Ring that he leaves to Frodo. After some research, Gandalf returns in a panic and tells Frodo that he must leave The Shire with all haste. These are the events that set off the adventure. Yet, according to Tolkien's novel, the gap between Frodo receiving the Ring and setting out from The Shire is one measured in years, not mere months.
Source:https://www.cbr.com/frodo-stayed-in-shire-17-years/