Work out the cost of goods sold, the margin and the ending stock value with first in, first out cost layers from your buys and sales, by month and by product.