In general
If the personal casualty losses for any taxable year exceed the personal casualty gains for such taxable year, such losses shall be allowed for the taxable year only to the extent of the sum of—
(i)#
the amount of the personal casualty gains for the taxable year, plus
(ii)#
so much of such excess as exceeds 10 percent of the adjusted gross income of the individual.