In Genesis, five months passed before Noah’s Ark rested on the mountains of Ararat.
Genesis dates the flood’s beginning to the seventeenth day of the second month. It then says that the ark came to rest on the seventeenth day of the seventh month. Counting from the second month to the seventh month gives five months, while the matching day number makes the interval especially clear.
The text’s calendar sequence is more precise than many shortened retellings suggest. The ark’s resting is not the same moment as Noah’s departure from it; Genesis continues with the recession of the waters, the appearance of mountain tops, and the later drying of the ground.
This answer also avoids a common confusion with the 150 days during which the waters prevail. That figure describes a flood phase, while the dated month count identifies the interval from the flood’s start to the ark’s resting.