Added CoGS pnl calculation