Calculate the weighted average cost per share across multiple purchases of the same stock.
Category: Finance.