Spaces:
Sleeping
Sleeping
Joseph Spada
commited on
Commit
·
207df97
1
Parent(s):
c8334c3
bug fix
Browse files
app.py
CHANGED
@@ -38,8 +38,6 @@ baseline_cagr_revenues = 4.02
|
|
38 |
|
39 |
def plot_interest_coverage(interest_rate, cagr_revenues):
|
40 |
|
41 |
-
print(cagr_revenues)
|
42 |
-
|
43 |
# calculate the yearly increase in the interest rate based on the projected interest rate in 2054
|
44 |
interest_rate_yearly_increase = (interest_rate - baseline_interest_rate) / (2054 - 2025) / 100
|
45 |
# calculate the yearly increase in revenues based on the projected interest rate in 2054
|
@@ -64,9 +62,10 @@ def plot_interest_coverage(interest_rate, cagr_revenues):
|
|
64 |
data["Total Revenues (Projected)"] = np.where(
|
65 |
data["Year"].astype(int) < 2025,
|
66 |
data["Total Revenues"],
|
67 |
-
# data["Total Revenues"] + (revenues_yearly_increase * (data["Year"].astype(int) - 2025)))
|
68 |
data["Total Revenues"] * (1 + (cagr_revenues / 100) ** (data["Year"].astype(int) - 2024)))
|
69 |
|
|
|
|
|
70 |
print(data["Total Revenues (Projected)"])
|
71 |
|
72 |
# add a projected revenues ex SS OASDI column
|
@@ -182,7 +181,7 @@ with gr.Blocks() as interface:
|
|
182 |
)
|
183 |
|
184 |
gr.Markdown('<p style="font-size:11px;">Source: CBO June 2024 An Update to the Budget and Economic Outlook: 2024 to 2034, '
|
185 |
-
'March 2024 report The Long-Term Budget Outlook: 2024 to 2054, and author\'s calculations. Scenario of higher interest rate and revenues'
|
186 |
'is author\'s calculations. Data points for 2035-2054 calculated to build on CBO\'s June 2024 10-year update and be consistent '
|
187 |
'with the March 2024 long-term report. Historical Social Security OASDI payroll tax revenue from Table 4-3 of the SSA\'s '
|
188 |
'Trust Fund Data, and projections from the CBO\'s August 2024 Long Term Projections for Social Security.</p>')
|
|
|
38 |
|
39 |
def plot_interest_coverage(interest_rate, cagr_revenues):
|
40 |
|
|
|
|
|
41 |
# calculate the yearly increase in the interest rate based on the projected interest rate in 2054
|
42 |
interest_rate_yearly_increase = (interest_rate - baseline_interest_rate) / (2054 - 2025) / 100
|
43 |
# calculate the yearly increase in revenues based on the projected interest rate in 2054
|
|
|
62 |
data["Total Revenues (Projected)"] = np.where(
|
63 |
data["Year"].astype(int) < 2025,
|
64 |
data["Total Revenues"],
|
|
|
65 |
data["Total Revenues"] * (1 + (cagr_revenues / 100) ** (data["Year"].astype(int) - 2024)))
|
66 |
|
67 |
+
# data["Total Revenues"] + (revenues_yearly_increase * (data["Year"].astype(int) - 2025)))
|
68 |
+
|
69 |
print(data["Total Revenues (Projected)"])
|
70 |
|
71 |
# add a projected revenues ex SS OASDI column
|
|
|
181 |
)
|
182 |
|
183 |
gr.Markdown('<p style="font-size:11px;">Source: CBO June 2024 An Update to the Budget and Economic Outlook: 2024 to 2034, '
|
184 |
+
'March 2024 report The Long-Term Budget Outlook: 2024 to 2054, and author\'s calculations. Scenario of higher interest rate and revenues '
|
185 |
'is author\'s calculations. Data points for 2035-2054 calculated to build on CBO\'s June 2024 10-year update and be consistent '
|
186 |
'with the March 2024 long-term report. Historical Social Security OASDI payroll tax revenue from Table 4-3 of the SSA\'s '
|
187 |
'Trust Fund Data, and projections from the CBO\'s August 2024 Long Term Projections for Social Security.</p>')
|