The preceding sentence shall not apply to any deduction in excess of the amount includible in the taxpayer???s gross income for the taxable year on account of a judgment or settlement (whether by suit or agreement and whether as lump sum or periodic payments) resulting from such claim.