Why does the program is calculate my 17 yo child met the requirements of the CTC if she was 17 on 12/31/23. I checked her info is accurate entered.

I have typically listed my child as a dependent. In April 2023 she turned 17, which would make her no longer eligible for child tax credit. The program is still calculating the $2,000 credit, but the IRS has rejected my tax return because she does not qualify.  Any guidance would be helpful on how to solve this issue. She is still under 18, so she is still technically a dependent.