Hi
How the system calculates costing methods is a pretty complex question, it also changes with the adjust cost item entries batch job
Your best bet is to read through the costing whitepaper, it is for version 5 but will give you the background, you can find it here
dynamicsuser.net/.../8363.aspx
Cheers
Neville