Spaces:
Sleeping
Sleeping
Joseph Spada
commited on
Commit
·
ec2d845
1
Parent(s):
c07756f
change to revenue increase calculation
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ def plot_interest_coverage(interest_rate, cagr_revenues):
|
|
45 |
# calculate the yearly increase in the interest rate based on the projected interest rate in 2054
|
46 |
interest_rate_yearly_increase = (interest_rate - baseline_interest_rate) / (2055 - 2025) / 100
|
47 |
# calculate the yearly increase in revenues based on the annual growth rate through 2055
|
48 |
-
|
49 |
-
|
50 |
|
51 |
# add a baseline net interest / revenues column
|
52 |
data["Net Interest / Revenues (Baseline)"] = data["Net Interest"] / data["Total Revenues"]
|
@@ -67,7 +67,7 @@ def plot_interest_coverage(interest_rate, cagr_revenues):
|
|
67 |
data["Total Revenues (Projected)"] = np.where(
|
68 |
data.index.astype(int) < 2025,
|
69 |
data["Total Revenues"],
|
70 |
-
|
71 |
|
72 |
#print(data.loc[2055, "Total Revenues (Projected)"])
|
73 |
|
|
|
45 |
# calculate the yearly increase in the interest rate based on the projected interest rate in 2054
|
46 |
interest_rate_yearly_increase = (interest_rate - baseline_interest_rate) / (2055 - 2025) / 100
|
47 |
# calculate the yearly increase in revenues based on the annual growth rate through 2055
|
48 |
+
total_revenues_2055 = total_revenues_2024 * ((1 + (cagr_revenues / 100)) ** (2055 - 2024))
|
49 |
+
revenues_yearly_increase = (total_revenues_2055 - total_revenues_2055_bl) / (2055 - 2025)
|
50 |
|
51 |
# add a baseline net interest / revenues column
|
52 |
data["Net Interest / Revenues (Baseline)"] = data["Net Interest"] / data["Total Revenues"]
|
|
|
67 |
data["Total Revenues (Projected)"] = np.where(
|
68 |
data.index.astype(int) < 2025,
|
69 |
data["Total Revenues"],
|
70 |
+
data["Total Revenues"] + (revenues_yearly_increase * (data.index.astype(int) - 2024)))
|
71 |
|
72 |
#print(data.loc[2055, "Total Revenues (Projected)"])
|
73 |
|