How to use calculation with Inventory widget?