When deciding on a parenting plan a judge will make a decision based on the best interests of the child, which may include the opinion of the child, or having a guardian ad litem appointed by the court. The court will also take things into account such as the amount of time spent with each parent, which parent is going to foster a better relationship between the child and the other parent and who is more able to tend to the needs of the child.