Get your taxes done using TurboTax

On the worksheet, it's the smaller of line 23 or 24.

 

Also, did you mean "AGI" or "taxable income"?