(1) In the case of a corporation, losses from sales or exchanges of capital assets shall be allowed only to the extent of gains from such sales or exchanges.
(2) In the case of a taxpayer other than a corporation, losses from sales or exchanges of capital assets shall be allowed only to the extent of the gains from such sales or exchanges, plus, if such losses exceed such gains, the lower of:
(a) Three Thousand Dollars ($3,000.00) and One Thousand Five Hundred Dollars ($1,500.00) in the case of a married individual filing a separate return, or
(b) The excess of such losses over such gains.