No matter whether a periodic or perpetual inventory system is used, all companies need to determine inventory quantities at the end of each accounting period.