{"ref":{"kind":"component","id":"target_return_entry_price","key":"sha256:22ee8dcf5aa0ca07d2605783275011af940000131caa34ffd5657b9a64729379"},"label":"Target Return Entry Price","description":"Backsolve a nonnegative entry price from future monthly cash flow and a target annual return.","inputs":[{"label":"Available","name":"available","valueType":{"axes":[],"dtype":"f64","unit":"flag"}},{"label":"Fixed Costs","name":"fixed_costs","valueType":{"axes":[],"dtype":"f64","unit":"$"}},{"label":"Future Cash Flow","name":"future_cash_flow","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Target Annual Return","name":"target_annual_return","valueType":{"axes":[],"dtype":"f64","unit":"%"}},{"label":"Variable Cost Pct","name":"variable_cost_pct","valueType":{"axes":[],"dtype":"f64","unit":"%"}}],"outputs":[{"label":"Value","name":"value","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["returns"],"notes":{},"calculation":{"nodes":[{"id":"input-available","label":"Available","kind":"input"},{"id":"input-fixed_costs","label":"Fixed Costs","kind":"input"},{"id":"input-future_cash_flow","label":"Future Cash Flow","kind":"input"},{"id":"input-target_annual_return","label":"Target Annual Return","kind":"input"},{"id":"input-variable_cost_pct","label":"Variable Cost Pct","kind":"input"},{"id":"step-annual_exponent","label":"Annual exponent","kind":"step","rule":"(Positions in series(Future Cash Flow) ÷ 12)","sources":[{"node":"input-future_cash_flow"}]},{"id":"step-discount_factor","label":"Discount factor","kind":"step","rule":"((1 + Target Annual Return) ^ Annual exponent)","sources":[{"node":"input-target_annual_return"},{"node":"step-annual_exponent"}],"calls":[{"function":"percent_to_number","label":"Percent to number","bindings":[{"name":"percent","label":"Percent","value":"Target Annual Return"}],"rule":"Target Annual Return"}]},{"id":"step-present_value","label":"Present value","kind":"step","rule":"Sum((Future Cash Flow ÷ Discount factor))","sources":[{"node":"input-future_cash_flow"},{"node":"step-discount_factor"}]},{"id":"step-price","label":"Price","kind":"step","rule":"Higher of ((Present value − Fixed Costs) ÷ (1 + Variable Cost Pct)) and 0","sources":[{"node":"step-present_value"},{"node":"input-fixed_costs"},{"node":"input-variable_cost_pct"}],"calls":[{"function":"percent_to_number","label":"Percent to number","bindings":[{"name":"percent","label":"Percent","value":"Variable Cost Pct"}],"rule":"Variable Cost Pct"}]},{"id":"output-value","kind":"output","label":"Value","rule":"if Available, then Price, otherwise 0","sources":[{"node":"input-available"},{"node":"step-price"}]}],"topics":[{"label":"Target Return Entry Price","results":["output-value"]}]},"usedBy":[{"kind":"recipe","id":"secondary_dated","key":"sha256:e0959da66177c09759df3ce796541bcba3b11e1550527e1fa5ab01774fdd805c"},{"kind":"recipe","id":"secondary","key":"sha256:66498892bb48f7b3beacc4888f44d52630de9a81a4f58b481a448a28525c7fdd"},{"kind":"recipe","id":"single_family_development","key":"sha256:7cbf7a6885faf03497d0f91f19204cb9d504c05b3623fa3a362281037883288e"}]}
