Calculates margins based vendor pricing, average inventory cost, or a blend of both, depending on the situation.