Deductions & credits

you did sell before you bought or they expired.  as such any gains or losses are short-term capital gains/loss