How to calculate your receipt

Based on how much stock you bought and the prices.