Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b541fb
commit b889157
Showing
11 changed files
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +0,0 @@ | ||
#!/usr/bin/env python | ||
# __author__ = "Ronie Martinez" | ||
# __copyright__ = "Copyright 2019, Ronie Martinez" | ||
# __credits__ = ["Ronie Martinez"] | ||
# __maintainer__ = "Ronie Martinez" | ||
# __email__ = "ronmarti18@gmail.com" | ||
|
||
|
||
def calculate_amortization_amount(principal, interest_rate, period): | ||
""" | ||
Calculates Amortization Amount per period | ||
:param principal: Principal amount | ||
:param interest_rate: Interest rate per period | ||
:param period: Total number of periods | ||
:return: Amortization amount per period | ||
""" | ||
x = (1 + interest_rate) ** period | ||
return principal * (interest_rate * x) / (x - 1) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python | ||
# __author__ = "Ronie Martinez" | ||
# __copyright__ = "Copyright 2019, Ronie Martinez" | ||
# __credits__ = ["Ronie Martinez"] | ||
# __maintainer__ = "Ronie Martinez" | ||
# __email__ = "ronmarti18@gmail.com" | ||
|
||
|
||
def calculate_amortization_amount(principal, interest_rate, period): | ||
""" | ||
Calculates Amortization Amount per period | ||
:param principal: Principal amount | ||
:param interest_rate: Interest rate per period | ||
:param period: Total number of periods | ||
:return: Amortization amount per period | ||
""" | ||
x = (1 + interest_rate) ** period | ||
return principal * (interest_rate * x) / (x - 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters