diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/valuation.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/valuation.py b/components/valuation.py index 7ac32f5..88ea889 100644 --- a/components/valuation.py +++ b/components/valuation.py @@ -318,7 +318,10 @@ def _render_dcf(ticker: str): ebitda = get_ebitda_from_income_stmt(ticker) or info.get("ebitda") total_debt = info.get("totalDebt") or 0.0 total_cash = info.get("totalCash") or 0.0 - ev_ebitda_current = info.get("enterpriseToEbitda") + + # Compute current EV/EBITDA from our own data, not the bad info dict value + ev_val = info.get("enterpriseValue") + ev_ebitda_current = (ev_val / ebitda) if (ev_val and ebitda and ebitda > 0) else None if not ebitda or ebitda <= 0: st.info("EBITDA not available or negative — EV/EBITDA valuation cannot be computed.") |
