A New York court can make orders about the child's custody only until the child is 18 years old. The Court gives custody based on what is best for the child, this is called the "best interest of the child."