Skip to content
TotalFinance

All calculators

Ten live calculators that run TotalFinance in your browser, with your inputs and your data.

Each calculator calls the public library in a Web Worker in your browser. Change an input and the results, charts and copyable TypeScript update together. Bring your own price data to the backtest, indicator and risk calculators. Nothing you enter leaves the page.

Under Use it in your project, choose Edit and run to change the first call and run it right there. It runs only when you press Run (or ⌘/Ctrl + Enter), in a sandbox with no network and no access to the page, against the same package build as the calculator, and stops after 10 seconds. Any @insiderfinance/totalfinance import that works in a browser is available; the Node-only CLI, HTTP and local-workflow entry points are not.

Price a European optionChange a sample market input. Price and Greeks use Black–Scholes–Merton, with explicit decimal rates and years to expiry.Analyze an option strategyEdit the legs or start from a preset. The chart is net profit or loss at expiration, not option value before expiry. Premiums are per share; the option contract multiplier is 100.Track profit, not depositsA sample ledger holds one equity position. Change the closing mark or add a deposit: new cash changes account value, but it is not investment profit. USD throughout.Value a company’s cash flowsA five-year sample FCFF forecast produces enterprise value. A discount rate is a stated assumption—not a market fact. No debt/cash bridge or share count is silently invented.Backtest a moving-average ruleHold the asset while a moving-average rule is on. Signals execute on the next bar, commissions are charged on every fill, and every input is yours to change, including the price data. A research demonstration, not evidence of an investable edge.Explore price and volatility scenariosRevalue a sample 100/110 bull call spread before expiry across underlying prices and volatility shocks. This is mark-to-market P&L, not an expiration payoff or a forecast.Chart technical indicatorsOverlay a moving average or Bollinger Bands on your own price bars and add an RSI or MACD pane. Warmup values stay NaN: an indicator never invents a value before it has enough history.Measure value at riskEstimate one-period value at risk and expected shortfall from a return series, then see where those losses sit in the distribution and how deep the drawdowns ran. Paste daily returns, or closing prices and they become simple returns.Price a fixed-rate bondPrice a newly issued fixed-rate bond from its yield, read its duration, convexity and DV01, and see how price responds as yields move. Prices are per 100 of face value; day count is 30/360.Fit a volatility smileEnter implied volatilities by strike for one expiry and fit a smooth smile with SVI, SABR or monotone interpolation. Read off the at-the-money level and wings, and check the fit for butterfly arbitrage.
Edit this page on GitHub ↗Every code block on this site is executed in CI against the library.