How to calculate the American Opportunity Tax Credit (AOTC) ?

I am using TurboTax, if I don't enter the $12106 tuition, I owe $1555 tax. After adding the $12106 tuition, I owe $555 tax. Based on American Opportunity Tax Credit (AOTC)  rules, I should not owe any tax after adding the tuition fee. Instead, I should get back ($2500 - $1555)*0.4 = $378 credit. , right? However TurboTax just show that I can only get $1000 American Opportunity Tax Credit (AOTC), and I still need to pay $555 tax. Who can help to look into this? Many thanks!