I am not sure what you are asking.  Once you enter everything on the Student Information Worksheet in Part VI, make sure you enter a maximum of $4000 on Line 17 (assuming you are calculating AOTC).  That should be the only adjustment needed (lines 14-16 are used less often).  The program will make the calculation of the taxable portion of the Q using the qualified expenses reduced by $4000.  If you don't put $4000 on Line 17, the program will use a larger amount to calculate the credit, resulting in lower qualified expenses and thus, more of the Q taxable.