Qualified farm indebtedness
For purposes of this section, indebtedness of a taxpayer shall be treated as qualified farm indebtedness if—
(A)#
such indebtedness was incurred directly in connection with the operation by the taxpayer of the trade or business of farming, and
(B)#
50 percent or more of the aggregate gross receipts of the taxpayer for the 3 taxable years preceding the taxable year in which the discharge of such indebtedness occurs is attributable to the trade or business of farming.