Inventory turnover ratio

During year 2, Rand Co. purchased $960,000 of inventory. The COGS for year 2 was $900,000, and the ending inventory @ 12/31/ year 2 was $180,000. What was the inventory turnover for year 2? Solution: First we need to calculate the Beg. Inventory. This is what I don't understand. Why we need to sum the ending inventory $180,000 when it is always in negative? and subtract the purchases $960,000.: COGS 900,000 + Ending Inventory $180,000 = Cost of goods Available for sale $1,080,000 - Purchases 960,000 Equals Beginning Inventory $120,000. Avg Inventory is 150,000 (120,000 + 180,000) / 2. And inventory Turnover is 6.0 Times (900,000 / 150,000)