Counterparty risk capital and cva