Sunsetting of the QuickBooks Commerce standalone product (formerly TradeGecko)

What is Moving Average Cost (MAC), and how is it calculated?