Calculates final price of items