calculate raw materials required to craft items