Quantitative Capital Structuring