Skip to content

Commit f81809d

Browse files
committed
Updated the README.md and the script to include more details
1 parent c4268dd commit f81809d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

INVESTMENT_RULES/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## What Is the Rule of 72?
1+
# List of python scripts that auomates calculation of really handful of Investment Rules.
2+
3+
## 1. What Is the Rule of 72?
24
The Rule of 72 is a simple way to determine how long an investment will take to double given a fixed annual rate of interest. Dividing 72 by the annual rate of return gives investors a rough estimate of how many years it will take for the initial investment to duplicate itself.
35

46
### Key takeaways

INVESTMENT_RULES/rule_of_72.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44

55
def calculate_time_taken_to_double(fixed_interest_rate):
6-
# It will get the time zone of the user location
6+
# A simple formula calulate the time it takes to double an investment.
77
time_taken = 72/float(fixed_interest_rate)
88
return time_taken
99

1010
time_taken_to_double = round(calculate_time_taken_to_double(fixed_interest_rate),2)
11-
print(f"Your investment will take {time_taken_to_double} year(s) to double")
11+
print(f"Your investment will take {time_taken_to_double} year(s) to double!")

0 commit comments

Comments
 (0)