How to calculate average stock price?

I am confused how do you calculate the average stock price?
I use this website:

But, I want to learn the formula or the steps to calculate manually.
Please help me out some in this regards.
Thank you.
Sign In or Register to comment.