Spaces:
Sleeping
Sleeping
Joseph Spada
commited on
Commit
·
a966a42
1
Parent(s):
9fd82a6
bug fix
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
|
|
4 |
import matplotlib.pyplot as plt
|
5 |
import numpy as np
|
6 |
import pandas as pd
|
|
|
7 |
|
8 |
# %%
|
9 |
# import data
|
@@ -62,8 +63,7 @@ def plot_interest_coverage(interest_rate, cagr_revenues):
|
|
62 |
data["Total Revenues (Projected)"] = np.where(
|
63 |
data["Year"].astype(int) < 2025,
|
64 |
data["Total Revenues"],
|
65 |
-
|
66 |
-
#data["Total Revenues"] * (1 + (cagr_revenues / 100) ** (data["Year"].astype(int) - 2024)))
|
67 |
# data["Total Revenues"] + (revenues_yearly_increase * (data["Year"].astype(int) - 2025)))
|
68 |
|
69 |
print(data["Total Revenues (Projected)"])
|
|
|
4 |
import matplotlib.pyplot as plt
|
5 |
import numpy as np
|
6 |
import pandas as pd
|
7 |
+
import math
|
8 |
|
9 |
# %%
|
10 |
# import data
|
|
|
63 |
data["Total Revenues (Projected)"] = np.where(
|
64 |
data["Year"].astype(int) < 2025,
|
65 |
data["Total Revenues"],
|
66 |
+
data["Total Revenues"] * math.pow(1 + (cagr_revenues / 100), (data["Year"].astype(int) - 2024)))
|
|
|
67 |
# data["Total Revenues"] + (revenues_yearly_increase * (data["Year"].astype(int) - 2025)))
|
68 |
|
69 |
print(data["Total Revenues (Projected)"])
|