Get your taxes done using TurboTax

Your ending inventory would include your finished product and your unused yarn.  The value of your finished hats would be based on the amount of yarn and other notions needed to produce the hat.