How to calculate average cost.

Min +max /2