(Number of Shares×Buy Price)+Buy Commission(Number of Shares cross Buy Price) plus Buy Commission
(Net ProfitTotal Purchase Cost)×100open paren the fraction with numerator Net Profit and denominator Total Purchase Cost end-fraction close paren cross 100
Most online calculators use these standard mathematical operations: