What does it do?
This demos shows some applications providing financial calculation. The operational format is for mobiles:
Discount factor: is the coefficient applied to reduce the nominal value of a sum of money in the future to create a present value equivalent having dicounted over each period applying the periodic interest rate .
Present value: is the application of discount factors to a stream of cash payments, such as net income, over a defined number of periods and periodic interest rate to generate the expected current value. Net present value1: is the application of discount factors to a stream of varying cash payments, such as net income, over a defined number of periods and periodic interest rate.
Compound factor: is the coefficient applied to increase the nominal value of a sum of money in the current period to create a future value equivalent having summed the accumulating interest over each period applying the periodic interest rate.
Future value:: is the application of compound factors to a stream of cash payments, such as net income, over a defined number of periods and periodic interest rate to generate the expected future value.
1 This demo demonstrates how the form content presented to a user can be changed dynamically at run time. Thus the users of the net present value (cash flow application) are asked how many periods will be analysed and the answer provides input for the generation of the correct number of form fields to be filled in. |
Information used
Discount factor: periodic interest rate expressed as a decimnal; number of periods. Present value: size of equal periodic payment; interest rate as decimal, number of periods.
Net present value1: the number of periods, the net cash flow peri period, interest rate.
Compound factor: interst rate as a decimal, number of periods
Future value:: size of equal periodic payment; interest rate as decimal, number of periods.
|
Formulae
Discount factor: 1/((1 + i)n) where i is the interest rate and n the number of periods.
Present value: ((1 + i)n - 1)/(i(1 + i)n) where i is the interest rate and n the number of periods.
;
Net present value1: N[Sum]n=0 [List]/((1+i)n) where [Sum] is ther summation of all period cash from n=0 to N, [List] is the corresponding data list providing the amount in each period, n is the number of periods and i is the interest rate.
Compound factor: (1 + i)n where i is the interest rate and n the number of periods.
Future value:: A((1 + i)n - 1)/i where A is the periodic cash, n is the number of periods and i is the interest rate.
|
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 (fv,pv,npv) by Vanguard Software Corporation and compounding & discounting equations from "Compounding & Dscounting Tables for Project Analysis", J. Price Gittinger, EDI Series, 1984. Mobile formats by VisualModel.com.
|