Get your taxes done using TurboTax

The rule is , find the earliest identical shares not already matched to another wash sale.
But why are you doing this yourself? are the share non-covered shares purchased before 2011?
Your broker may use it's own rules. I tried to understand the replacement algorithm TD Ameritrade used versus my calculations. After many days, I gave up and just reported exactly what they put on my 1099-B