Get your taxes done using TurboTax

@kurukishu   Unless it is leap year, a year has 365 nights.  That means that the child lived with ONE of the parents more than the other, so AGI is not used for determining who claims the child.

In the event it was a leap year (366 days) and the child spent 183 nights with each parent, THEN AGI would be the tiebreaker.