frontend finance utils

Usage no npm install needed!

<script type="module">
  import finnNoFinanceLib from 'https://cdn.skypack.dev/@finn-no/finance-lib';



standards for variables

  1. rate is always a value between 0 and 1, never a percentage - conversely a perentage is rate * 100
  2. period is always expressed in years


  • purchasePrice: kjøpesum
  • downPayment: egenkapital
  • loanAmount or principal: lånesum
    • principal is avoided since loanAmount is sufficiently correct and is a direct translation
  • term or period: nedbetalingstid
    • term is avoided so termingebyr can easily be searched for
  • LTVratio (loan to value): belåningsgrad
  • collateral: securityValue