Joseph was in prison for ten years. In the month of Elul, close to Rosh Hashanah, the episode with the Sar HaMashkin took place. Joseph knew at that time, that the 10 years of his prison term would be complete, and that he would be released on Rosh Hashanah.
We are told that because of the two
