Item Charge and Adjusted Cost

I would like to check how the system calculates the adjusted cost of an Item Charge of a credit memo. What module should I check? Thanks.