gain on stock

can someone explain how to calculate net gain/loss until now on a stock for a specific period( say 1 month). The daily buy /sell price and quantities are given.

Is this what this forum has become now…

wouldn’t that be the HPY ?

if i sell and buy quantities of the stock in between the the above two transactions, wouldn’t it affect the net gain/loss ? ( i need the gain @ 85 by your example)