Hi Everyone;
Im trying to create this looping into Knime, I do have a code for excel but I need to calculate it for millions of contracts,
So, I have two options open all bonds in their cash flows, or the following formula:
Public Function VP_Bullet(DtRef, Vcto As Date, Tx, Base, Saldo, Parcela)
VP_Acum = 0
Do
VP_Acum = Parcela / ((1 + Tx) ^ ((Vcto - DtRef) / Base)) + VP_Acum
Saldo = Saldo - Parcela
If Vcto - DtRef < 30 Then
Else
Vcto = Vcto - 30
End If
Loop Until Saldo <= 1
VP_Bullet = VP_Acum
End Function
Is there someway to apply the same looping in knime?