Here is one link, the exact times are not known, but as I said it could be up to two years.
"
All Males Under Two Are Murdered
Matthew 2:16 tells us that when Herod realized that the magi had not returned to tell him the exact location of where the Christ was living, he ordered every child two years old and younger to be murdered.
Then when Herod saw that he had been tricked by the magi, he became very enraged, and sent and slew all the male children who were in Bethlehem and all its vicinity, from two years old and under, according to the time which he had determined from the magi. Matthew 2:16 (NASB)
Verse 16 and verse 2 tell us that Herod the Great had determined that the magi had seen the star two years earlier. Consequently, Herod murdered all children from two years of age and under. This would reveal that Jesus was about two years of age when the magi visited Him. For more information read
“Are there any secular references to Herod killing babies under the age of two?”
Conclusion:
The gospel of Matthew reveals that Jesus was about two years of age when the wise men or magi visited Him. It is amazing all the information that Scripture gives us. In this case, the age of Christ is important since the information helps us understand the fulfillment of a prophecy in Jeremiah. Matthew 2:17 quotes Jeremiah 31:15.
Then what had been spoken through Jeremiah the prophet was fulfilled:
A voice was heard in Ramah,
Weeping and great mourning,
Rachel weeping for her children;
And she refused to be comforted,
Because they were no more.” Matthew 2:17 (NASB)
Matthew 2:17 helps understand why young children were murdered in the prophecy of Jeremiah 31:15. We can thank God for the many details He has given us in Scripture."
https://www.neverthirsty.org/bible-...ow-old-was-jesus-when-the-wise-men-found-him/