Spaces:
Runtime error
Runtime error
LuisLozano
commited on
Commit
•
3fb1c64
1
Parent(s):
f70b39d
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
A = st.number_input(
|
4 |
+
"Insert the initial investment (in $): "
|
5 |
+
)
|
6 |
+
r = st.number_input(
|
7 |
+
"Insert the interest rate (nominal in %): "
|
8 |
+
)
|
9 |
+
T = st.number_input(
|
10 |
+
"Insert the number of years of your investment: "
|
11 |
+
)
|
12 |
+
|
13 |
+
y = A * (1 + r/100)**T
|
14 |
+
|
15 |
+
st.write(f"Your money after {T} years is ${y}")
|