Cash is cash. If you loot only two store tools worth 4ks each (hopefully) and you spent 17ks in materials then you bought these two store items at 8,5 ks each which is more than twice the normal price.
Same goes for rare items, each has some market value which should balance out your expenses. Of course the smaller loot can make the difference.