Skip to content

Instantly share code, notes, and snippets.

@samuell
Created July 20, 2019 23:10
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 samuell/15c288aa3133c7deed726fa80b4daa85 to your computer and use it in GitHub Desktop.
Save samuell/15c288aa3133c7deed726fa80b4daa85 to your computer and use it in GitHub Desktop.
monthlyPaymentUSD := Mul(
Div(
Mul(
Div(Val(rate),
Val(1200.0)),
Exp(
Add(
Val(1.0),
Div(
Val(rate),
Val(1200.0))),
Val(months))),
Sub(
Exp(
Add(
Val(1.0),
Div(
Val(rate),
Val(1200.0))),
Val(months)),
Val(1.0))),
borrowedAmount)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment