Reg tomorrow...Last minute question about DNI

Hey guys, So i am going to take my last part tomorrow REG and found something i was confused about while doing my final review. For income distribution deduction, i am supposed to take the lower of the DNI or the actual amount distributed. In becker, it says the DNI is actually DNI (less tax-exempt) income. So my question is: do i use the DNI amount or DNI (less tax-exempt income) amount. So let's say these were the numbers: Gross Income - 100,000 Deductions - 60,000 Tax-exempt income - 10,000 Amount distributed to beneficiaries - 45,000. In this case, the DNI is 50,000 (100k-60k+10k), but DNI (less tax-exempt income) is 40,000. Would the Income distribution deduction be 40,000 or 45,000? Would appreciate a quick response. Thanks