Skip to content

Instantly share code, notes, and snippets.

@chadbaldwin
Last active September 1, 2023 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadbaldwin/52ae5f2dac2220d0671607348134b100 to your computer and use it in GitHub Desktop.
Save chadbaldwin/52ae5f2dac2220d0671607348134b100 to your computer and use it in GitHub Desktop.
Latex code used for generating formulas in Auto Finance Equations blog post
% Standard loan forumula
P=\begin{cases}
\frac{r(PV)}{1-(1+r)^{-n}} &\text{if }r\neq0\\\\
\;\;\;\;\;\frac{PV}{n} &\text{if }r=0
\end{cases}
% Finance Cost - Using Payment and Loan Amount
FC=\frac{P}{PV}
% Finance Cost - Using Rate and Term
FC=\begin{cases}
\frac{r}{1-(1+r)^{-n}} &\text{if }r\neq0\\\\
\;\;\;\;\;\frac{1}{n} &\text{if }r=0
\end{cases}
% Finance Cost - Calculating cost per $1,000 financed
P=FC\cdot\$1,000
% Future Value
FV = PV(1+r)^n - P\left[ \frac{(1+r)^n-1}{r} \right]
@chadbaldwin
Copy link
Author

[reserving first comment]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment