% Black-Scholes (call) -- LaTeX source for card 2 of the Options Widget % Compile: pdflatex black-scholes-call.txt (or rename to .tex) \documentclass[11pt]{article} \usepackage{amsmath,amssymb} \usepackage[margin=1in]{geometry} \begin{document} \section*{Black--Scholes (call)} \begin{align*} C &= S\,N(d_1) - K e^{-rT} N(d_2) \\[4pt] d_1 &= \frac{\ln(S/K) + \left(r + \frac{\sigma^2}{2}\right)T}{\sigma\sqrt{T}} \\[4pt] d_2 &= d_1 - \sigma\sqrt{T} \end{align*} \subsection*{Variables} \begin{tabular}{ll} $S$ & spot \\ $K$ & strike \\ $T$ & years to expiry \\ $r$ & risk-free rate \\ $\sigma$ & volatility \\ $N(\cdot)$ & normal CDF \\ $C$ & call price \\ \end{tabular} \subsection*{How the widget computes it} \begin{itemize} \item Time to expiry, to 4:00\,PM ET on the expiration date: \[ T = \frac{t_{\text{expiry}} - t_{\text{now}}\ \text{(calendar days)}}{365} \] \item Risk-free rate: live 13-week T-bill, $r = \text{\^{}IRX}/100$. \item Normal CDF via the complementary error function: \[ N(x) = \tfrac{1}{2}\,\operatorname{erfc}\!\left(-\frac{x}{\sqrt{2}}\right) = \tfrac{1}{2}\left[1 + \operatorname{erf}\!\left(\frac{x}{\sqrt{2}}\right)\right] \] ($\operatorname{erfc}$ by the Numerical Recipes Chebyshev fit, $|\epsilon_{\text{rel}}| < 1.2\times10^{-7}$). \item Interpretation: $N(d_1)$ = call delta; $N(d_2) \approx$ risk-neutral probability the call ends in the money. \item At expiry ($T \le 0$): $C = \max(0,\, S - K)$. \item Implied volatility: solve $C(\sigma) = C_{\text{mid}}$ by bisection on $\sigma \in [0.01,\, 5]$. \item Daily time decay (theta per day): \[ \frac{\Theta}{365} = \frac{1}{365}\left[-\frac{S\,\varphi(d_1)\,\sigma}{2\sqrt{T}} - r K e^{-rT} N(d_2)\right], \qquad \varphi(x) = \frac{e^{-x^2/2}}{\sqrt{2\pi}} \] \end{itemize} \end{document}