The following is the genealogy of Shem. When Shem was 100, he had Arphaxad. This was two years after the flood.
Shem lived another 500 years after Arphaxad was born and had other sons and daughters.
The following is the genealogy of Terah. Terah was the father of Abram, Nahor, and Haran. Haran was the father of Lot.