Rabbi Levi used , 41:46, and 45:6 to calculate that Joseph's dreams that his brothers would bow to him took 22 years to come true, and deduced that a person should thus wait for as much as 22 years for a positive dream's fulfillment. Rav Huna in the name of Rabbi Joshua used as a mnemonic for calculating what year it was in the Sabbatical cycle of seven years. The Gemara used to help calculate (among other things) that Jacob should have been 116 years old when he came to Egypt, but since indicated that Jacob was then 130 years old, the Gemara deduced that the text did not count 14 years that Jacob spent studying in the Academy of Eber.