Private Sub CTerms_Exit(ByVal Cancel As MSForms.ReturnBoolean)
IntFact = Val(18 / 100 / 365) * Val(CTerms)
IntFact = Format(Val(IntFact), "#0.00000")
If CmpMargFigPM > CmpMargFigPM Then
MaxamtNoInt = Val(RateFromClienPM) - (Val(CmpMargFigPM) + Val(Stax))
MaxamtNoInt = Format(Val(MaxamtNoInt), "#0.000")
Else
MaxamtNoInt = Val(RateFromClienPM) - (Val(CmpnyMarginPM) + Val(Stax))
MaxamtNoInt = Format(Val(MaxamtNoInt), "#0.000")
End If
MaxCTC = Val(MaxamtNoInt) / 1 + Val(IntFact)
MaxCTC = Format(Val(MaxCTC), "0.0000")
IntCllPer.Value = CDbl(MaxCTC.Value) * CDbl(IntFact.Value)
IntCllPer = Format(Val(IntCllPer), "#0.000")
Private Sub CNegot_Exit(ByVal Cancel As MSForms.ReturnBoolean)
CTCAftNegot = Val(CNegot) + Val(MaxCTC)
Tds = (Val(RateFromClienPM) + Val(Stax)) / 10
STandTDS = Val(Tds) - Val(Stax)
Billamtfrmclient = Val(RateFromClienPM) + Val(STandTDS)
Expenses = (Val(CTCAftNego) + Val(Stax)) + (Val(IntFact) * Val(MaxamtNoInt))
Cprofit = Val(RateFromClienPM) - Val(Expenses)
If CprofitValue > 7500 Then
Approval.BackColor = RGB(0, 255, 0)
Approval.Text = "Proceed"
Else
Approval.BackColor = RGB(255, 0, 0)
Approval.Text = "Contact Manager : Punnam/Atul"
End If
End Sub
End Sub