<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Azhar Abbas</title>
    <description>The latest articles on DEV Community by Azhar Abbas (@azharabbas).</description>
    <link>https://dev.to/azharabbas</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4226299%2Fdbb55844-d08d-4ed0-967d-d5b3b19aefb8.png</url>
      <title>DEV Community: Azhar Abbas</title>
      <link>https://dev.to/azharabbas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/azharabbas"/>
    <language>en</language>
    <item>
      <title>How loan EMI and KIBOR-linked markup work in Pakistan (with the formula and a JavaScript example)</title>
      <dc:creator>Azhar Abbas</dc:creator>
      <pubDate>Wed, 04 Nov 2026 13:21:46 +0000</pubDate>
      <link>https://dev.to/azharabbas/how-loan-emi-and-kibor-linked-markup-work-in-pakistan-with-the-formula-and-a-javascript-example-7pn</link>
      <guid>https://dev.to/azharabbas/how-loan-emi-and-kibor-linked-markup-work-in-pakistan-with-the-formula-and-a-javascript-example-7pn</guid>
      <description>&lt;p&gt;If you have ever taken a car, home or personal loan from a Pakistani bank, you have been quoted two things: a monthly installment (EMI) and a rate that looks like "KIBOR + 3%". This post explains what both mean, shows the math, and ends with a small JavaScript function you can drop into your own project.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Reducing-balance EMI
&lt;/h2&gt;

&lt;p&gt;Almost every conventional consumer loan in Pakistan is priced on a &lt;strong&gt;reducing balance&lt;/strong&gt;: each month, markup is charged only on the principal you still owe. The fixed monthly installment that pays the loan off exactly by the last month is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EMI = P × r × (1 + r)^n / ((1 + r)^n − 1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;P&lt;/code&gt; = principal (amount borrowed)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;r&lt;/code&gt; = monthly rate = annual rate ÷ 12 ÷ 100&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;n&lt;/code&gt; = number of monthly installments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Early in the loan most of the installment is markup; later most of it is principal. The installment stays the same (until the rate resets, see below), but the split changes every month.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A worked PKR example
&lt;/h2&gt;

&lt;p&gt;Borrow &lt;strong&gt;Rs 500,000 at 24% per year for 3 years&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;r&lt;/code&gt; = 24 / 12 / 100 = 0.02&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;n&lt;/code&gt; = 36&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;(1.02)^36&lt;/code&gt; ≈ 2.0399
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EMI = 500,000 × 0.02 × 2.0399 / (2.0399 − 1) ≈ Rs 19,616.43
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Over 36 months you pay &lt;strong&gt;Rs 706,191&lt;/strong&gt; in total, so the &lt;strong&gt;total markup is Rs 206,191&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Month 1 breakdown:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Markup (500,000 × 2%)&lt;/td&gt;
&lt;td&gt;Rs 10,000.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Principal repaid&lt;/td&gt;
&lt;td&gt;Rs 9,616.43&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Balance after month 1&lt;/td&gt;
&lt;td&gt;Rs 490,383.57&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;By month 36 the markup portion is only a few hundred rupees. This is why early settlement saves the most money when done early: most of the markup is front-loaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Where the rate comes from: KIBOR + spread
&lt;/h2&gt;

&lt;p&gt;Most variable-rate consumer loans in Pakistan are priced as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Your rate = KIBOR (benchmark) + bank spread
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;KIBOR&lt;/strong&gt; (Karachi Interbank Offered Rate) is a benchmark published daily for several tenors (1-month, 6-month, 1-year, etc.). It moves broadly with the State Bank of Pakistan's policy rate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spread&lt;/strong&gt; is the bank's margin, fixed in your loan agreement. It depends on the product, your income type (salaried vs self-employed) and your credit history (eCIB).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many loans &lt;strong&gt;reset&lt;/strong&gt; the rate periodically, often annually against 1-year KIBOR or semi-annually against 6-month KIBOR. At each reset, the bank recalculates your installment on the remaining balance and remaining tenor using the new rate.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What a 1% KIBOR change does
&lt;/h2&gt;

&lt;p&gt;Because the spread is fixed, a 1 percentage point rise in KIBOR raises your rate by exactly 1 point. Here is what that does, computed with the formula above.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Personal loan, Rs 500,000, 3 years&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;th&gt;EMI&lt;/th&gt;
&lt;th&gt;Total markup&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;24%&lt;/td&gt;
&lt;td&gt;Rs 19,616&lt;/td&gt;
&lt;td&gt;Rs 206,191&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;td&gt;Rs 19,880&lt;/td&gt;
&lt;td&gt;Rs 215,677&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;About &lt;strong&gt;Rs 263 more per month&lt;/strong&gt;, and roughly Rs 9,500 more over the loan (if the higher rate applied for the full term).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Home loan, Rs 5,000,000, 20 years&lt;/strong&gt; (illustrative: KIBOR 11% + 3% spread = 14%)&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;th&gt;EMI&lt;/th&gt;
&lt;th&gt;Total markup&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;14%&lt;/td&gt;
&lt;td&gt;Rs 62,176&lt;/td&gt;
&lt;td&gt;Rs 9,922,250&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15%&lt;/td&gt;
&lt;td&gt;Rs 65,839&lt;/td&gt;
&lt;td&gt;Rs 10,801,475&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;About &lt;strong&gt;Rs 3,663 more per month&lt;/strong&gt; and roughly &lt;strong&gt;Rs 879,000 more&lt;/strong&gt; over 20 years. Long tenors amplify rate changes enormously, which is why KIBOR matters far more to a home-loan borrower than to someone with a 3-year personal loan.&lt;/p&gt;

&lt;p&gt;(The 11% KIBOR here is a round number for illustration, not a current quote. Check the latest published figure before you use it.)&lt;/p&gt;

&lt;h2&gt;
  
  
  5. DBR: how much the bank will actually lend you
&lt;/h2&gt;

&lt;p&gt;Even if you can compute an installment, the bank caps it using the &lt;strong&gt;Debt Burden Ratio (DBR)&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DBR = (all monthly debt installments) ÷ (monthly income)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That includes the new loan, existing loans and credit-card minimums. State Bank prudential regulations set the maximum DBR for consumer financing, and banks often apply their own, stricter internal limits. Check the current SBP regulations and your bank's policy for the exact cap.&lt;/p&gt;

&lt;p&gt;In practice you can work backwards: take your income, multiply by the allowed DBR, subtract existing obligations, and the remainder is the largest EMI the bank will accept. Then invert the EMI formula to find the maximum principal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;P = EMI × ((1 + r)^n − 1) / (r × (1 + r)^n)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Islamic financing (Ijarah, Diminishing Musharakah)
&lt;/h2&gt;

&lt;p&gt;Islamic banks structure car financing as &lt;strong&gt;Ijarah&lt;/strong&gt; (lease) and home financing commonly as &lt;strong&gt;Diminishing Musharakah&lt;/strong&gt;. The contracts are different (rent and ownership units rather than interest), but the rental is typically benchmarked to KIBOR too, so the monthly payment usually behaves very similarly to the formula above. The contract and its Shariah terms matter more than the arithmetic.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. The JavaScript
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;emi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;annualRate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;annualRate&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;principal&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nx"&gt;months&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;f&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;months&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;principal&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;f&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;f&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;amortization&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;annualRate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;annualRate&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;emi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;annualRate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;months&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[];&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="nx"&gt;months&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;markup&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;princ&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pay&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;markup&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;balance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;princ&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;month&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;payment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;pay&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;markup&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;principal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;princ&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;balance&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;emi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;500000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;pay&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toFixed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;                    &lt;span class="c1"&gt;// 19616.43&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;pay&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;36&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;500000&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;toFixed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;    &lt;span class="c1"&gt;// 206191.35&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;amortization&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;500000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;   &lt;span class="c1"&gt;// month 1: markup 10000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few practical notes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Round only for display. Banks round each installment, so their schedule can differ from yours by a few rupees.&lt;/li&gt;
&lt;li&gt;To model a KIBOR reset, take the balance at the reset month and call &lt;code&gt;emi(balance, newRate, monthsLeft)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Processing fees, insurance and (for cars) registration costs are not part of the EMI, so add them separately when comparing offers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;The core formula is short. What actually changes your cost is the spread you negotiate, the tenor you pick, and where KIBOR goes at each reset. Run the numbers for a 1–2% rise before you sign anything long-term.&lt;/p&gt;

&lt;p&gt;If you don't want to do the math yourself, &lt;a href="https://loancalculators.pk" rel="noopener noreferrer"&gt;loancalculators.pk&lt;/a&gt; has free calculators for personal, car, home and bike loans, plus DBR eligibility, car Ijarah and early settlement, and a comparison across Pakistani banks.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>finance</category>
      <category>pakistan</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
