Get your taxes done using TurboTax

"add up all the old purchase amounts to figure COA"

 

That is the method of "average cost"

 

@Anonymous