Spaces:
Runtime error
Runtime error
restore
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def calculate_yearly_interest(maturity_value:int, current_value:int, maturity_ye
|
|
| 22 |
# Calculate the yearly interest
|
| 23 |
yearly_interest = str((maturity_value / current_value) ** (1 / maturity_years) - 1)
|
| 24 |
# return yearly_interest
|
| 25 |
-
return f"the zero-bond yearly interest rate for maturity {maturity_years} years is in percentage:
|
| 26 |
|
| 27 |
|
| 28 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
|
| 22 |
# Calculate the yearly interest
|
| 23 |
yearly_interest = str((maturity_value / current_value) ** (1 / maturity_years) - 1)
|
| 24 |
# return yearly_interest
|
| 25 |
+
return f"the zero-bond yearly interest rate for maturity {maturity_years} years is in percentage:"
|
| 26 |
|
| 27 |
|
| 28 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|