Skip to content

Commit 5db8951

Browse files
committed
Updated graphs for car loan
1 parent 23d2e44 commit 5db8951

File tree

6 files changed

+22
-91
lines changed

6 files changed

+22
-91
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Finance/.ipynb_checkpoints/car_loans-checkpoint.ipynb

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -700,13 +700,6 @@
700700
"## Total Interest Through Different Loan Terms"
701701
]
702702
},
703-
{
704-
"cell_type": "markdown",
705-
"metadata": {},
706-
"source": [
707-
"cumulative sum: https://pandas.pydata.org/pandas-docs/version/0.23/generated/pandas.Series.cumsum.html"
708-
]
709-
},
710703
{
711704
"cell_type": "code",
712705
"execution_count": 40,
@@ -803,26 +796,6 @@
803796
"plt.grid(axis = 'both')\n",
804797
"plt.savefig('Total_Interest_Paid.png', dpi = 1000)"
805798
]
806-
},
807-
{
808-
"cell_type": "code",
809-
"execution_count": 59,
810-
"metadata": {
811-
"collapsed": false
812-
},
813-
"outputs": [],
814-
"source": [
815-
"axes.plot?"
816-
]
817-
},
818-
{
819-
"cell_type": "code",
820-
"execution_count": null,
821-
"metadata": {
822-
"collapsed": true
823-
},
824-
"outputs": [],
825-
"source": []
826799
}
827800
],
828801
"metadata": {

Finance/car_loans.ipynb

Lines changed: 22 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,7 @@
3232
},
3333
{
3434
"cell_type": "code",
35-
"execution_count": 2,
36-
"metadata": {
37-
"collapsed": true
38-
},
39-
"outputs": [],
40-
"source": [
41-
"# California sales tax 7.5%\n",
42-
"P = 31115 * (1.075)\n",
43-
"\n",
44-
"r = 0.0702 / 12\n",
45-
"n = 60"
46-
]
47-
},
48-
{
49-
"cell_type": "code",
50-
"execution_count": 3,
35+
"execution_count": 14,
5136
"metadata": {
5237
"collapsed": false
5338
},
@@ -58,15 +43,17 @@
5843
"662.638532377825"
5944
]
6045
},
61-
"execution_count": 3,
46+
"execution_count": 14,
6247
"metadata": {},
6348
"output_type": "execute_result"
6449
}
6550
],
6651
"source": [
52+
"P = 31115 * (1.075)\n",
53+
"r = 0.0702 / 12\n",
54+
"n = 60\n",
6755
"numerator = (r *((1 + r)**(n)) )\n",
6856
"denominator = ((1 + r)**(n)) - 1\n",
69-
"\n",
7057
"emi = P * (numerator / denominator)\n",
7158
"emi"
7259
]
@@ -80,32 +67,30 @@
8067
},
8168
{
8269
"cell_type": "code",
83-
"execution_count": 4,
70+
"execution_count": 15,
8471
"metadata": {
85-
"collapsed": true
72+
"collapsed": false
8673
},
87-
"outputs": [],
74+
"outputs": [
75+
{
76+
"data": {
77+
"text/plain": [
78+
"687.2302176619154"
79+
]
80+
},
81+
"execution_count": 15,
82+
"metadata": {},
83+
"output_type": "execute_result"
84+
}
85+
],
8886
"source": [
89-
"# Price + Tax + Emissions + Registration + Plate + Documentation\n",
9087
"P = 31115 + (32615 * 0.0975) + 50 + 200 + 65 + 80\n",
91-
"\n",
9288
"r = 0.0702 / 12\n",
93-
"n = 60"
94-
]
95-
},
96-
{
97-
"cell_type": "code",
98-
"execution_count": 5,
99-
"metadata": {
100-
"collapsed": false
101-
},
102-
"outputs": [],
103-
"source": [
89+
"n = 60\n",
10490
"numerator = (r *((1 + r)**(n)) )\n",
10591
"denominator = ((1 + r)**(n)) - 1\n",
106-
"\n",
10792
"emi = P * (numerator / denominator)\n",
108-
"emi = np.round(emi, 2)"
93+
"emi"
10994
]
11095
},
11196
{
@@ -470,7 +455,7 @@
470455
},
471456
{
472457
"cell_type": "code",
473-
"execution_count": 74,
458+
"execution_count": 13,
474459
"metadata": {
475460
"collapsed": false,
476461
"scrolled": true
@@ -700,13 +685,6 @@
700685
"## Total Interest Through Different Loan Terms"
701686
]
702687
},
703-
{
704-
"cell_type": "markdown",
705-
"metadata": {},
706-
"source": [
707-
"cumulative sum: https://pandas.pydata.org/pandas-docs/version/0.23/generated/pandas.Series.cumsum.html"
708-
]
709-
},
710688
{
711689
"cell_type": "code",
712690
"execution_count": 40,
@@ -803,26 +781,6 @@
803781
"plt.grid(axis = 'both')\n",
804782
"plt.savefig('Total_Interest_Paid.png', dpi = 1000)"
805783
]
806-
},
807-
{
808-
"cell_type": "code",
809-
"execution_count": 59,
810-
"metadata": {
811-
"collapsed": false
812-
},
813-
"outputs": [],
814-
"source": [
815-
"axes.plot?"
816-
]
817-
},
818-
{
819-
"cell_type": "code",
820-
"execution_count": null,
821-
"metadata": {
822-
"collapsed": true
823-
},
824-
"outputs": [],
825-
"source": []
826784
}
827785
],
828786
"metadata": {

Finance/loans.pptx

-60.6 KB
Binary file not shown.

Finance/monthlyPaymentEvidence.png

46.7 KB
Loading

Finance/monthlyPaymentEvidence2.png

35 KB
Loading

0 commit comments

Comments
 (0)