What does it do?
This demos provides a calculator to estimate the rate of return within a projectm know as the internal rate of return. |
Information used
It requires a net cash flow for each period of project operation.
|
Formulae
This is essentially a reiteration of the net present value method so as to arrive at a value of 0 for the periods indicated and solving for i. Thus N[Sum]n=0 [List]/((1+i)n)=0 where [Sum] is ther summation of all period cash from n=0 to N, [List] is the corresponding data list providing the net cash flow in each period, n is the number of periods and i is the interest rate to be detedrmined for npv=0.
|
Scripts & code details
These formats are for mobile devices. The process of creation of the correct number of form fields employs a DScriptTM "makelist" primitive to create a list of incremental values over the range thus 3 = [1,2,3] or 5=[1,2,3,4,5] thus: Listit=makelist(x,x,1,x, Assessno,1) where Assessno is the name of the node requesting the number of periods. The list is then used to prime an "each" primitive which builds the correct table and form field dimentions according to the number of periods, thus: each(table cell code + font specification 0+x" input field: ^(real)^^^^^^^^^^^^^^^^^,x,Listit) and where Listit is the list of incremental values.
primitives:
makelist(function or expression, name of input variable, lower limit, upper limit, step; default=1)
each(transformation function, name of input variable, list of elements to be transformed, n optionl number of successive elements in the list to be grouped for each evaluation, default=1)
| Credits
DScriptTM primitives (irr) by Vanguard Software Corporation used in collaboration with Development Intelligence & Navatec.com in the development of the RTA (Real Time Audit) suit of programs.
|