Now after many days Shua’s daughter, the wife of Judah, died. When Judah was comforted, he went up to his sheepshearers to Timnah, he and his friend Hirah the Adullamite.

“after many days.” This is an idiom; in this case it would have been a number of years that Tamar had obediently waited.