Calculating the average inventory cost over last 30 POs