I'm trying to call a function inside another function but the result I'm getting is 0
Function DepositRate(Deposit):
If Deposit > 100000 Then
Rtaxa = 0.078
ElseIf Deposit <= 100000 And Deposit > 10000 Then
Rtaxa = 0.073
ElseIf Deposit <= 10000 And Deposit > 1000 Then
Rtaxa = 0.063
ElseIf Deposit <= 1000 And Deposit > 0 Then
Rtaxa = 0.055
Else
Rtaxa = "Negative Value"
End If
DepositRate = Rtaxa
End Function
Function NewDFV(Value, Year):
Call DepositRate(Value)
ValorFuturo = Deposit * (1 + Rtaxa) ^ (Year)
NewDFV = ValorFuturo
End Function
So, Where I'm doing wrong here ?
