Deductions & credits

A child is a qualifying child up to the age of 19 or up to the age of 24 if they are a full time student ... so reaching 18 is not material.  Does the divorce decree have a sunset clause on the claiming of the children.