iteminfo function

Function to calculate item information