In general
For purposes of losses from wagering transactions, the amount allowed as a deduction for any taxable year—
(A)#
shall be equal to 90 percent of the amount of such losses during such taxable year, and
(B)#
shall be allowed only to the extent of the gains from such transactions during such taxable year.