How does the irs code define a qualified tuition and fees deduction?

Qualified expenses are the amounts paid for tuition, fees, and other related expenses for an eligible student that are required to enroll in or attend an eligible educational institution. You must pay the expenses for an academic period* that begins during the fiscal year or the first three months of the next fiscal year.