Code Snippets Similar to "Carried Interest Valuation":