summaryrefslogtreecommitdiff
path: root/Engineering_Economics/Chapter5.ipynb
blob: 398e418d639b4ca771b9eb511835e7304dfb5cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
{
 "metadata": {
  "name": "",
  "signature": "sha256:e388f34dd67bfe5948d20d52a601f7e8e53b92aa882e9a754ed91176569417c0"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Future Worth Method"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.1,Page 54"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "#alternate A\n",
      "P=5000000.0;#in Rs\n",
      "A=2000000.0;#in Rs\n",
      "i=18.0;#in % per annum\n",
      "n=4.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_A=(-P*(1+i/100)**n)+(A*(((1+i/100)**n)-1)/(i/100));#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative A in RS.  \",round(FW_A,3);\n",
      "\n",
      "#alternate B\n",
      "P=4500000.0;#in Rs\n",
      "A=1800000.0;#in Rs\n",
      "i=18.0;#in % per annum\n",
      "n=4.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_B=(-P*(1+i/100)**n)+(A*(((1+i/100)**n)-1)/(i/100));#in RS\n",
      "print \"The future worth amount of alternative B in RS.  \", round(FW_B,3);\n",
      "print \"The future worth of alternative A is greater than that of alternative B. Thus, alternative A should be selected.\";\n",
      "print \" Calculation in the book is not accurate.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The future worth amount of alternative A in RS.   736975.2\n",
        "The future worth amount of alternative B in RS.   663277.68\n",
        "The future worth of alternative A is greater than that of alternative B. Thus, alternative A should be selected.\n",
        " Calculation in the book is not accurate.\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.2,Page 58"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "#alternate 1\n",
      "FC=2000000.0;#in Rs\n",
      "AI=800000.0;#in Rs\n",
      "ATax=80000.0;#in Rs\n",
      "NetAI=AI-ATax;#in Rs\n",
      "i=12.0;#in % per annum\n",
      "n=20.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_1=(-FC*(1+i/100)**n)+(NetAI*(((1+i/100)**n)-1)/(i/100));#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative 1 in RS. : \", round(FW_1,3)\n",
      "\n",
      "#alternative2\n",
      "FC=3600000.0;#in Rs\n",
      "AI=980000.0;#in Rs\n",
      "ATax=150000.0;#in Rs\n",
      "NetAI=AI-ATax;#in Rs\n",
      "i=12.0;#in % per annum\n",
      "n=20.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_2=(-FC*(1+i/100)**n)+(NetAI*(((1+i/100)**n)-1)/(i/100));#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative 2 in RS.\",round(FW_2,3)\n",
      "print\"The future worth of alternative 1 is greater than that of alternative 2. Thus, building the gas station is the best alternative.\";\n",
      "print \" Calculation in the book is not accurate.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The future worth amount of alternative 1 in RS. :  32585172.373\n",
        "The future worth amount of alternative 2 in RS. 25076872.093\n",
        "The future worth of alternative 1 is greater than that of alternative 2. Thus, building the gas station is the best alternative.\n",
        " Calculation in the book is not accurate.\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.3,Page 59"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "#part a\n",
      "#alternative 1\n",
      "P=500000.0;#in Rs\n",
      "A1=50000.0;#in Rs\n",
      "G=50000.0;#in Rs\n",
      "i=8.0;#in % per annum\n",
      "n=6.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_1=(-P*(1+i/100)**n)+(A1+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100))*(((1+i/100)**n)-1)/(i/100);#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative 1 in RS.  \", round(FW_1,3);\n",
      "\n",
      "#alternative 2\n",
      "P=700000.0;#in Rs\n",
      "A1=70000.0;#in Rs\n",
      "G=70000.0;#in Rs\n",
      "i=8.0;#in % per annum\n",
      "n=6.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_2=(-P*(1+i/100)**n)+(A1+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100))*(((1+i/100)**n)-1)/(i/100);#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative 2 in RS.  \", round(FW_2,3);\n",
      "print \"The future worth of alternative 2 is greater than that of alternative 1. Thus, alternative 2 must be selected.\";\n",
      "\n",
      "\n",
      "#part b\n",
      "#alternative a\n",
      "P=500000.0;#in Rs\n",
      "A1=50000.0;#in Rs\n",
      "G=50000.0;#in Rs\n",
      "i=9.0;#in % per annum\n",
      "n=6.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_1=(-P*(1+i/100)**n)+(A1+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100))*(((1+i/100)**n)-1)/(i/100);#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative 1 in RS.  \", round(FW_1,3);\n",
      "\n",
      "#altenative 2\n",
      "P=700000.0;#in Rs\n",
      "A1=70000.0;#in Rs\n",
      "G=70000.0;#in Rs\n",
      "i=9.0;#in % per annum\n",
      "n=6.0;#in years\n",
      "\n",
      "#calculation\n",
      "FW_1=(-P*(1+i/100)**n)+(A1+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100))*(((1+i/100)**n)-1)/(i/100);#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of alternative 2 in RS.\", round(FW_1,3);\n",
      "print \"The negative sign of alternatives future worth indicates that alternative 2 incurs loss. Thus, none of the two alternatives should be selected. \";\n",
      "print \" Calculation in the book is not accurate.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The future worth amount of alternative 1 in RS.   408314.938\n",
        "The future worth amount of alternative 2 in RS.   571640.914\n",
        "The future worth of alternative 2 is greater than that of alternative 1. Thus, alternative 2 must be selected.\n",
        "The future worth amount of alternative 1 in RS.   383913.653\n",
        "The future worth amount of alternative 2 in RS. 537479.115\n",
        "The negative sign of alternatives future worth indicates that alternative 2 incurs loss. Thus, none of the two alternatives should be selected. \n",
        " Calculation in the book is not accurate.\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.4 Page 62"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "#alternative 1\n",
      "P=8000000.0;#in Rs\n",
      "A=800000.0;#in Rs\n",
      "i=20.0;#in % per annum\n",
      "n=12.0;#in years\n",
      "Salvage=500000;#in Rs\n",
      "\n",
      "#calcualtion\n",
      "FW1=P*(1+i/100)**n+A*(((1+i/100)**n)-1)/(i/100)-Salvage;#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth for this alternative in RS.\",round(FW1,3)\n",
      "\n",
      "#alternative 2\n",
      "P=7000000.0;#in Rs\n",
      "A=900000.0;#in Rs\n",
      "i=20.0;#in % per annum\n",
      "n=12.0;#in years\n",
      "Salvage=400000;#in Rs\n",
      "\n",
      "#calculation\n",
      "FW2=P*(1+i/100)**n+A*(((1+i/100)**n)-1)/(i/100)-Salvage;#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth for this alternative in RS.\",round(FW2,3);\n",
      "\n",
      "#alternative 3\n",
      "P=9000000.0;#in Rs\n",
      "A=850000.0;#in Rs\n",
      "i=20.0;#in % per annum\n",
      "n=12.0;#in years\n",
      "Salvage=700000;#in Rs\n",
      "\n",
      "#calculation\n",
      "FW3=P*(1+i/100)**n+A*(((1+i/100)**n)-1)/(i/100)-Salvage;#in RS\n",
      "\n",
      "print \"The future worth for this alternative in RS.  \",round(FW3,3)\n",
      "print \"The future worth of alternative 2 is less than that of other two alternatives. Thus, Ms. Krishna castings should buy the annealing furnace from manufacturer 2.\";\n",
      "print \" Calculation in the book is not accurate.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The future worth for this alternative in RS. 102493205.379\n",
        "The future worth for this alternative in RS. 97635155.155\n",
        "The future worth for this alternative in RS.   113188330.939\n",
        "The future worth of alternative 2 is less than that of other two alternatives. Thus, Ms. Krishna castings should buy the annealing furnace from manufacturer 2.\n",
        " Calculation in the book is not accurate.\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.5 Page 64"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "#Machine A\n",
      "P=400000.0;#in Rs\n",
      "A=40000.0;#in Rs\n",
      "S=200000.0;#in Rs\n",
      "i=12.0;#in % per annum\n",
      "n=4.0#in years\n",
      "\n",
      "#calculation\n",
      "FW_A=(P*(1+i/100)**n)+(A*(((1+i/100)**n)-1)/(i/100))-S;#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of Machine A in RS. \",round(FW_A,3);\n",
      "\n",
      "#Machine B\n",
      "P=800000.0;#in Rs\n",
      "A=0.0;#in Rs\n",
      "S=550000.0;#in Rs\n",
      "i=12.0;#in % per annum\n",
      "n=4.0#in years\n",
      "\n",
      "#calculation\n",
      "FW_B=(P*(1+i/100)**n)+(A*(((1+i/100)**n)-1)/(i/100))-S;#in RS\n",
      "\n",
      "#result\n",
      "print \"The future worth amount of Machine B in RS. \",round(FW_B,3);\n",
      "print \"The future worth of Machine A is less than that of Machine B. Thus, Machine A should be selected.\";\n",
      "print \" Calculation in the book is not accurate\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The future worth amount of Machine A in RS.  620580.864\n",
        "The future worth amount of Machine B in RS.  708815.488\n",
        "The future worth of Machine A is less than that of Machine B. Thus, Machine A should be selected.\n",
        " Calculation in the book is not accurate\n"
       ]
      }
     ],
     "prompt_number": 13
    }
   ],
   "metadata": {}
  }
 ]
}