https://studentaid.ed.gov/sa/fafsa/filling-out/parent-info#divorced-separated-living-apart gives the rule. Whom the child lives with most of the time determines who the custodial parent is. Who provides more financial support is the tie breaker if the child lives with both parents equally.