51 Pa.C.S. § 4643
Upon petition of a deploying parent who has returned from deployment, the court shall issue an order granting the deploying parent reasonable contact with the child until the agreement entered into under Subchapter B (relating to agreement addressing custodial responsibility during deployment) or the order issued under Subchapter C (relating to judicial procedure for granting custodial responsibility during deployment) is terminated, unless it is contrary to the best interest of the child, even if the time of contact exceeds the time the deploying parent spent with the child before deployment.