How does TurboTax calculate Closing Inventory? (Schedule C, Line 41)

Schedule C, Line 41 (Closing Inventory) is automatically calculated.  What formula is TurboTax using?