How to calculate average price in share market

How do investors use average price calculations in trading?