update calculator
Browse files
app.py
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
title_conpund = "Uninvested Earnings Calculator"
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
# """
|
8 |
|
9 |
title_ETF1 = "Stock Earnings Calculator"
|
|
|
|
|
|
|
10 |
|
11 |
def greet(name):
|
12 |
return "Hello " + name + "!!"
|
13 |
|
14 |
|
15 |
-
def
|
16 |
initial_investment,
|
17 |
# annual_contribution,
|
18 |
# monthly_contribution,
|
@@ -54,7 +56,7 @@ def ETF_with_price_change_rate(
|
|
54 |
|
55 |
|
56 |
iface = gr.Interface(
|
57 |
-
fn=
|
58 |
inputs=[
|
59 |
gr.Number(label="Initial Investment", precision=2),
|
60 |
gr.Number(label="Yearly Interest Rate", precision=3, step=0.01),
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
title_conpund = "Uninvested Earnings Calculator"
|
4 |
+
description_conpound = """
|
5 |
+
Monthly compound.
|
6 |
+
"""
|
|
|
7 |
|
8 |
title_ETF1 = "Stock Earnings Calculator"
|
9 |
+
description_ETF1 = """
|
10 |
+
Daily compound is not included.
|
11 |
+
"""
|
12 |
|
13 |
def greet(name):
|
14 |
return "Hello " + name + "!!"
|
15 |
|
16 |
|
17 |
+
def compound(
|
18 |
initial_investment,
|
19 |
# annual_contribution,
|
20 |
# monthly_contribution,
|
|
|
56 |
|
57 |
|
58 |
iface = gr.Interface(
|
59 |
+
fn=compound,
|
60 |
inputs=[
|
61 |
gr.Number(label="Initial Investment", precision=2),
|
62 |
gr.Number(label="Yearly Interest Rate", precision=3, step=0.01),
|