When a judge strips them of their rights.
The question you are really asking is how long a parent can go without contact before the other parent can file for termination of parental rights, based upon abandonment.
And that's what you should google for PA.