Credit risk may be warehoused by choice, or because of limited hedging possibilities. Credit risk warehousing increases capital requirements and leaves open risk. Open risk must be priced in the physical measure, rather than the risk neutral measure, and implies profits and losses. Furthermore the rate of return on capital that shareholders require must be paid from profits. Profits are taxable and losses provide tax credits. Here we extend the semi-replication approach of Burgard and Kjaer (2013) and the capital formalism (KVA) of Green, Kenyon, and Dennis (2014) to cover credit risk warehousing and tax, formalized as double-semi-replication and TVA (Tax Valuation Adjustment) to enable quantification.