In general, I deal with this by using the sell for half formula.
However, I wrote a now retired Living Greyhawk mod that dealt with selling the party's loot from the adventure they just finished (in the introduction :). In that one, I broke it down as follows:
A character getting an item...