Skip to content

Commit c13208c

Browse files
committed
Updated Read Me for XIRR
Updated README.md for XIRR feature added
1 parent b510f7c commit c13208c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ Finance.js
112112
finance.IRR(-500000, 200000, 300000, 200000);
113113
=> 18.82</code></pre>
114114

115+
<h3 id="XIRR">XIRR<br>
116+
117+
<code class="highlight">finance.XIRR([cash flows], [dates], guess);</code></h3>
118+
119+
<p>XIRR is used to determine the Internal Rate of Return when the cash flows are at Irregular intervals.<sup><a href="http://www.financialwisdomforum.org/gummy-stuff/xirr.htm" target="_blank">15</a></sup></p>
120+
121+
<pre><code>// e.g., If the cash flows are -$1,000 on 1st Nov 2015, -$100 on 01 Jul 2016 and $1,200 on 19 Jul 2016, the XIRR is 14.11%.
122+
123+
finance.XIRR([-1000, -100, 1200],[new Date(2015, 11, 1 ), new Date(2016, 7, 1 ), new Date(2016, 7, 19 )],0 );
124+
=> 14.11</code></pre>
125+
115126
<h3 id="LR">Leverage Ratio (LR)<br>
116127

117128
<code class="highlight">finance.LR(total liabilities, total debts, total income);</code></h3>

0 commit comments

Comments
 (0)