Many factors go into determining what that constitutes "in the best interest of the child": who goes to appointments, who takes care of the children at home, or if there are any substance abuse issues. Ultimately, the court will do what is in the best interest of the child when it comes to custody. Usually, this means joint or 50/50 custody, but not always.