Inventory 'needs updating' calculation improvement

Inventory calculations for items that need updating is now more
accurate.