Sorry for the spanish code
I don’t now why it’s not working
**Your code so far**
def CDT(usuario: str, capital: int, tiempo: int):
usuario: str = usuario
capital: int = capital
tiempo: int = tiempo
if tiempo <= 2:
valor_a_perder: int = capital * 0.02
valor_total: int = capital - valor_a_perder
return(f"Para el usuario {usuario} La cantidad de dinero a recibir, según el monto inicial {capital} para un tiempo de {tiempo} meses es:{valor_total}")
elif tiempo >= 3:
valor_intereses: int = capital * 0.03 * tiempo / 12
valor_total: int = capital + valor_intereses
# resultado =resultado
return (f"Para el usuario {usuario} La cantidad de dinero a recibir, según el monto inicial {capital} para un tiempo de {tiempo} meses es:{valor_total}")
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Challenge: Render with an If-Else Condition
Link to the challenge: