Parents may wish to come to their own agreement on custody; otherwise, the court will decide for you. In addition, each state has its own formula for calculating the total child support obligation. Factors affecting the calculation include each parent’s income, the number of children, whether there is a primary custodial parent, and the children’s time spent with each parent. Pets can also be part of a custody agreement.