Midrash HaKeitz

Rabbi Yitzchak, who knew the Keitz, calculated in the years of Malchut. He said: The world was created ששת ימים, which is six times one thousand years, from year 1 to year 6001. Each day is Erev and Boker, and so the world is 12 times 500. But the very end of Malchut is a little later, as is written (Yirmyahu 31:16) יש תקוה לאחריתך. Therefore, the very end must be the year 6133, 511 (תקו"ה) times 12 after year 1.

Rabbi Yehuda, who heard from Eliyahu (Sanhedrin 97b) and knew Ma'aseh B'reishit, calculated in years of the Earth. He said: It is written (B'reishit 6:3) "his days shall be a hundred and twenty years." Read "his generations". The generations are ע"ב נ"ב, Keter Malchut. That is, 72 generations of 1000 years until the Mabul, and 52 generations of 120 years thereafter. Also, the generations are Tzaddik Malchut, צ' נ"ב, Ninety generations of 800 years until the Mabul, followed by 52 generations of 120 years until the end, in accordance with what is written (B'reishit 7:1): צדיק לפני בדור הזה. Until Yetziat Mitzrayim are ברי"ת generations of 120 years. The Brit of the Tzaddik, Noach. After Yetziat Mitzrayim, מ' דורות, forty generations of 120 years, remain. Together: ברי"ת מ' דורות, or 78,240 years, until the year 6129. The Brit of the Mem. Replied Rabbi Yitzchak: Add four years and get ברי"ת ד"ם.

Eilu v'Eilu.

פט