Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,12 +34,8 @@ def compound(
|
|
34 |
investment_length
|
35 |
tax_rate
|
36 |
"""
|
37 |
-
gross_earnings = initial_investment
|
38 |
-
|
39 |
-
- initial_investment
|
40 |
-
return (
|
41 |
-
gross_earnings * (1-tax_rate)
|
42 |
-
)
|
43 |
|
44 |
|
45 |
def ETF_with_price_net_change(
|
|
|
34 |
investment_length
|
35 |
tax_rate
|
36 |
"""
|
37 |
+
gross_earnings = initial_investment * (1 + yearly_interest_rate / 12) ** (investment_length / 12 * 12) - initial_investment
|
38 |
+
return (gross_earnings * (1-tax_rate))
|
|
|
|
|
|
|
|
|
39 |
|
40 |
|
41 |
def ETF_with_price_net_change(
|