Methodology
How each valuation model works — formulas, assumptions, and step-by-step process.
DCF — Discounted Cash Flow
The DCF model estimates the intrinsic value of a company by projecting future Free Cash Flows (FCF) and discounting them to present value using the Weighted Average Cost of Capital (WACC).
Equity Value = Firm Value - Divida Liquida
Preco Alvo = Equity Value / Numero de Acoes
Step by step:
- Historical financial data is loaded from CVM (BR) or EDGAR (US)
- The user configures projection parameters: revenue growth, margins, CAPEX, working capital
- Two-phase convergence: Phase 1 (explicit projection, 5-10Y) → Phase 2 (convergence to steady state)
- FCF is calculated for each year: NOPAT + D&A - CAPEX - Delta Working Capital
- Terminal Value is calculated via Gordon Growth: FCF(n+1) / (WACC - g)
- All cash flows are discounted to present value at the WACC rate
- Net debt is subtracted to arrive at Equity Value
- Target price = Equity Value / Number of shares
DDM — Dividend Discount Model
The DDM values a stock based on the present value of expected future dividends. Uses the Gordon Growth Model for stocks with stable dividend policies.
Ke = Rf + Beta × ERP + CRP
Step by step:
- Historical DPS (Dividend Per Share) is loaded from financial data
- The user sets the expected dividend growth rate (g) and cost of equity (Ke)
- Multi-stage DDM: explicit dividend projections for N years, then perpetuity via Gordon Growth
- All dividends are discounted to present value at the Ke rate
- Target price = Sum of discounted dividends + PV of terminal value
Monte Carlo — Stochastic DCF
Monte Carlo simulation runs thousands of DCF valuations with randomized parameters, producing a probability distribution of target prices instead of a single point estimate.
Parametros ~ Normal(media, desvio_padrao)
Preco_i = DCF(parametros_i)
Resultado = Distribuicao({ Preco_1, ..., Preco_N })
Step by step:
- The user configures mean and standard deviation for each DCF parameter
- N iterations (default 1,000) are run, each with randomly sampled parameters
- Each iteration runs a full DCF forecast
- Results are aggregated: histogram, percentiles (P10, P25, P50, P75, P90), mean, std dev
- Probability of upside is calculated vs. current market price
Multiples Valuation
Relative valuation compares a stock's trading multiples (EV/EBITDA, P/E, P/BV) against its sector peers to identify under- or over-valued companies.
P/E = Preco / Lucro por Acao
P/BV = Preco / Valor Patrimonial por Acao
Preco Alvo = Multiplo_medio_peers × Metrica_empresa
Step by step:
- A peer group is assembled from sector companies
- Multiples are calculated for each peer using latest financial data
- Sector averages and medians are computed (excluding outliers)
- Implied valuation: apply peer average multiple to the target company's metrics
- Upside/downside is calculated vs. current market price
Fixed Income — Bond Calculator
Bond pricing and analytics: pricing from yield, YTM calculation, duration, convexity, DV01, and carry analysis for Brazilian government bonds (Tesouro Direto).
Duration = Σ [ t × PV(CF_t) ] / Preco
Convexidade = Σ [ t × (t+1) × PV(CF_t) ] / [ Preco × (1+y)^2 ]
DV01 = Duration × Preco × 0.0001
Step by step:
- Macro indicators are loaded: Selic, CDI, IPCA, IGP-M, real interest rate
- Yield curves (ETTJ PRE, DIC, DOC) are fetched from B3
- Active Tesouro Direto bonds are listed with current prices and yields
- Bond calculator: user selects a bond and yield → price, duration, convexity, DV01, carry
- Scenario analysis: impact of rate changes on bond price (using duration + convexity)
Portfolio Analytics
Portfolio analysis combines position tracking with quantitative risk and return metrics: regression-based beta, Markowitz mean-variance optimization, time-weighted returns, and concentration analysis.
Alpha = Rp - [Rf + Beta × (Rm - Rf)]
Sharpe = (Rp - Rf) / σp
TWR = Π(1 + Ri) - 1
HHI = Σ(wi²) × 10.000
Key analytics:
- Regression Beta: OLS regression of portfolio monthly returns vs benchmark (IBOV or S&P 500). Provides beta, Jensen's alpha, R², and t-statistics
- Markowitz Optimization: Mean-variance optimization to find the efficient frontier — maximum Sharpe ratio, minimum variance, and risk parity portfolios
- TWR / MWR: Time-Weighted Return (eliminates cash flow distortions, GIPS standard) alongside Money-Weighted Return (reflects actual investor timing)
- Concentration Risk: Herfindahl-Hirschman Index (HHI), effective number of positions, maximum position and sector weights with traffic-light warnings
- Benchmark Comparison: Portfolio value evolution normalized to 100, overlaid with IBOV, CDI, and S&P 500 benchmarks
- B3 Import: Direct XLSX import from B3 Area do Investidor — positions, trades, and dividends auto-detected and mapped to our universe