Script suitable for a Google spreadsheet to calculate the cost of crafting an item based on market values