{"ref":{"kind":"component","id":"xirr","key":"sha256:7ad412c6eccbb8d6e40a8d12cab7223d9d6f8ec8e0b25e2fc7ece746030cc09d"},"label":"IRR","description":"Calculate annualized irregular return and whether exactly one supported root exists.","inputs":[{"label":"Cash","name":"cash","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Month-end dates","name":"dates","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"str","unit":"date"}}],"outputs":[{"label":"IRR","name":"rate","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Supported XIRR root","name":"supported_root","valueType":{"axes":[],"dtype":"f64","unit":"flag"}}],"dependencies":[],"libraries":["waterfall"],"notes":{},"calculation":{"nodes":[{"id":"input-cash","label":"Cash","kind":"input"},{"id":"input-dates","label":"Month-end dates","kind":"input"},{"id":"step-result","label":"Result","kind":"step","rule":"Xirr with availability(Cash, Month-end dates)","sources":[{"node":"input-cash"},{"node":"input-dates"}],"calls":[{"function":"xirr_with_availability","label":"Xirr with availability","bindings":[{"name":"cash","label":"Cash","value":"Cash"},{"name":"dates","label":"Dates","value":"Month-end dates"}],"purpose":"Find the unique supported annual rate that discounts dated cash flows to zero using actual elapsed days divided by 365. Return the rate and a flag indicating whether that solution exists.","rule":"Xirr with availability(Cash, Month-end dates)"}]},{"id":"output-rate","kind":"output","label":"IRR","rule":"Value at index(Result, 0)","sources":[{"node":"step-result"}],"calls":[{"function":"extract_percent","label":"Extract percent","bindings":[{"name":"result","label":"Result","value":"Result"},{"name":"row","label":"Row","value":"0"}],"rule":"Value at index(Result, 0)"}]},{"id":"output-supported_root","kind":"output","label":"Supported XIRR root","rule":"Value at index(Result, 1)","sources":[{"node":"step-result"}],"calls":[{"function":"extract_flag","label":"Extract flag","bindings":[{"name":"result","label":"Result","value":"Result"},{"name":"row","label":"Row","value":"1"}],"rule":"Value at index(Result, 1)"}]}],"topics":[{"label":"IRR","results":["output-rate","output-supported_root"]}]},"usedBy":[{"kind":"recipe","id":"condo_development","key":"sha256:e1e317fbad79babd19d06f30b451bf1b5fc74bf415bd554eb16205d31d5a7996"},{"kind":"recipe","id":"data_center_acquisition","key":"sha256:a3de19f40187caf36db2e6ce0da98119726e3c4bf05500115912b18e3fc8c1ca"},{"kind":"recipe","id":"data_center_development","key":"sha256:b76434a51896bf65e497e8679d3a1c7a72f5c0ed2705618ed598fbad02e7ef0e"},{"kind":"recipe","id":"hotel","key":"sha256:bf0956eceaed37e652044e718371c50f6d742ef9dc4b93edf968a748eda841c3"},{"kind":"recipe","id":"multifamily","key":"sha256:397eeb7b5a8b1a4584c66bc4c75f1a85494dbe812871f2e39c9192beb8a51f18"},{"kind":"recipe","id":"multifamily_development","key":"sha256:bd5fced62c36e2251666c32d8cd629753c9f945e2292b401f90f46ce957e1bcd"}]}
