Also recommend the humble, yet powerful, spreadsheet.
Been using it 10+ years.
If you have no idea where to begin, let's assume your columns are:
A=date,B=note,C=Qty,D=company_code,E=charge,F=cost_per_share,G=cost,H=cost+charge,I=sold,J=sold-charge
you pretty much cover everything plus have info for taxes later too.
G = C x F
H = G + E
I = C x F
J = I - E
Using fictitious numbers, assume you bought 10 shares of ABC, at $5.00, and were charged $20, copy&paste G&H
jan1 2020,,10,ABC,20,5 then G=50,H=70
selling, 10 shares of ABC, at $5.50, copy&paste I&J
jan2 2020,,10,ABC,20,5.5 then I=55,J=35
For taxes, you write $35 for total proceeds and $70 total cost
...for a grand profit of
-$25 With time, your spreadsheet gets fancier
with formatting and other stuff - Hopefully the numbers look better than red too