{"ref":{"kind":"component","id":"saas_investor_performance","key":"sha256:75c8903ba9c70dc255cc975d698235c361e3464b996c70d1ea1aa597ba4fec29"},"label":"Performance","description":"Measure investor performance from dated cash flows and retain unsupported XIRR explicitly.","inputs":[{"label":"Cash Flows","name":"cash_flows","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true},{"extent":null,"name":"saas_return_month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Exit Available","name":"exit_available","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"flag"}},{"label":"Fund Size","name":"fund_size","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Months","name":"months","valueType":{"axes":[{"extent":null,"name":"saas_return_month","variable":true}],"dtype":"str","unit":"month"}}],"outputs":[{"label":"Fund Contribution","name":"fund_contribution","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"%"}},{"label":"Invested Capital","name":"invested_capital","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"$"}},{"label":"MOIC","name":"moic","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"x"}},{"label":"Proceeds","name":"proceeds","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Return Available","name":"return_available","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"flag"}},{"label":"XIRR","name":"xirr","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"%"}},{"label":"XIRR available","name":"xirr_available","valueType":{"axes":[{"extent":null,"name":"saas_exit_path","variable":true}],"dtype":"f64","unit":"flag"}}],"dependencies":[],"libraries":["saas_investor_returns"],"notes":{},"calculation":{"nodes":[{"id":"input-cash_flows","label":"Cash Flows","kind":"input"},{"id":"input-exit_available","label":"Exit Available","kind":"input"},{"id":"input-fund_size","label":"Fund Size","kind":"input"},{"id":"input-months","label":"Months","kind":"input"},{"id":"step-invested_capital","label":"Invested Capital","kind":"step","rule":"(Sum along axis(Transpose(Lower of Cash Flows and 0), SaaS return month) × -1)","sources":[{"node":"input-cash_flows"}]},{"id":"step-proceeds","label":"Proceeds","kind":"step","rule":"Sum along axis(Transpose(Higher of Cash Flows and 0), SaaS return month)","sources":[{"node":"input-cash_flows"}]},{"id":"step-schedule","label":"Schedule","kind":"step","rule":"Row xirr(Cash Flows, Months)","sources":[{"node":"input-cash_flows"},{"node":"input-months"}],"calls":[{"function":"saas_returns_row_xirr","label":"SaaS returns row xirr","bindings":[{"name":"cash_flows","label":"Cash flows","value":"Cash Flows"},{"name":"months","label":"Months","value":"Months"}],"purpose":"For each cash-flow row with one change from outflows to inflows, use month-end dates to solve the annual return on an actual/365 basis. Return the rate with its availability flag.","rule":"Row xirr(Cash Flows, Months)"}]},{"id":"step-return_available","label":"Return Available","kind":"step","rule":"(Exit Available × (Invested Capital > 0))","sources":[{"node":"input-exit_available"},{"node":"step-invested_capital"}]},{"id":"output-invested_capital","kind":"output","label":"Invested Capital","rule":"Invested Capital","sources":[{"node":"step-invested_capital"}]},{"id":"output-proceeds","kind":"output","label":"Proceeds","rule":"Proceeds","sources":[{"node":"step-proceeds"}]},{"id":"step-supported","label":"Supported","kind":"step","rule":"Value at index(Schedule, 1)","sources":[{"node":"step-schedule"}],"calls":[{"function":"saas_returns_xirr_supported","label":"SaaS returns xirr supported","bindings":[{"name":"row","label":"Row","value":"1"},{"name":"schedule","label":"Schedule","value":"Schedule"}],"rule":"Value at index(Schedule, 1)"}]},{"id":"step-multiple","label":"Multiple","kind":"step","rule":"if Return Available, then (Proceeds ÷ Invested Capital, or 0 when the divisor is 0), otherwise 0","sources":[{"node":"step-return_available"},{"node":"step-invested_capital"},{"node":"step-proceeds"}],"calls":[{"function":"saas_returns_moic","label":"SaaS returns MOIC","bindings":[{"name":"denominator","label":"Denominator","value":"Invested Capital"},{"name":"numerator","label":"Numerator","value":"Proceeds"}],"rule":"(Proceeds ÷ Invested Capital, or 0 when the divisor is 0)"}]},{"id":"output-fund_contribution","kind":"output","label":"Fund Contribution","rule":"if Return Available, then (Proceeds ÷ Fund Size, or 0 when the divisor is 0), otherwise 0","sources":[{"node":"step-return_available"},{"node":"input-fund_size"},{"node":"step-proceeds"}],"calls":[{"function":"saas_returns_fund_contribution","label":"SaaS returns fund contribution","bindings":[{"name":"denominator","label":"Denominator","value":"Fund Size"},{"name":"numerator","label":"Numerator","value":"Proceeds"}],"rule":"(Proceeds ÷ Fund Size, or 0 when the divisor is 0)"}]},{"id":"output-return_available","kind":"output","label":"Return Available","rule":"Return Available","sources":[{"node":"step-return_available"}]},{"id":"step-available","label":"Available","kind":"step","rule":"(Return Available × Supported)","sources":[{"node":"step-return_available"},{"node":"step-supported"}]},{"id":"output-moic","kind":"output","label":"MOIC","rule":"Multiple","sources":[{"node":"step-multiple"}]},{"id":"step-rate","label":"Rate","kind":"step","rule":"if Available, then Value at index(Schedule, 0), otherwise 0","sources":[{"node":"step-available"},{"node":"step-schedule"}],"calls":[{"function":"saas_returns_xirr_rate","label":"SaaS returns xirr rate","bindings":[{"name":"row","label":"Row","value":"0"},{"name":"schedule","label":"Schedule","value":"Schedule"}],"rule":"Value at index(Schedule, 0)"}]},{"id":"output-xirr_available","kind":"output","label":"XIRR available","rule":"Available","sources":[{"node":"step-available"}]},{"id":"output-xirr","kind":"output","label":"XIRR","rule":"Rate","sources":[{"node":"step-rate"}]}],"topics":[{"label":"Performance","results":["output-fund_contribution","output-invested_capital","output-moic","output-proceeds","output-return_available","output-xirr","output-xirr_available"]}]},"usedBy":[{"kind":"recipe","id":"saas_growth","key":"sha256:88594e507d178cd99c02af20c0ae04962fac045ddd929a34b2110b58ad01324b"}]}
