Avraham was circumcised at the age of ninety-nine [(this is Year 2047)] and Yishmael was then twelve years old [(and in Bereishit Rabbah, Parashat Vayera chapter 55, it says he was sixteen years old)]. This requires investigation, for the angels who came on the third day after his circumcision came in the evening to Sodom, and the next day Sodom was overturned. The event of Sodom was fifty-two years after the Dispersion, as explained in the first chapter of Shabbat and in Rashi on Parashat Vayera.
Thus from the Dispersion which was in Year 1996, plus fifty-two years, equals Year 2048 when he was circumcised. And behold the angels announced to Avraham that "at this time next year" Sarah would have a son, and since Sarah was to give birth to Yitzchak in Year 2049, this requires investigation according to the first chapter of Rosh Hashanah, etc. [The text continues with extensive calendrical calculations regarding the timing of the circumcision, birth of Yitzchak, and related events, with some opinions placing the circumcision in Tammuz and others on Yom Kippur.]