Este es un ejemplo para calculo de empeños y fechas de vencimiento
Dim resultado As Double
Dim intereses As Double Dim almacenaje As Double Dim iva As Double Dim totalrefrendo As Double
REM TextBox22.Text = Format(Val(TextBox22.Text), "$0.00")
REM Dim resultadotexto As String resultado = Val(TextBox22.Text) * 0.15 + Val(TextBox22.Text) REM resultadotexto = CStr(resultado) TextBox23.Text = resultado TextBox25.Text = TextBox22.Text intereses = Val(TextBox23.Text) - Val(TextBox22.Text)
iva = intereses / 1.16 * 0.16
almacenaje = intereses * 0.23 totalrefrendo = intereses - almacenaje - iva TextBox26.Text = Format(totalrefrendo, "$0.00") TextBox27.Text = Format(almacenaje, "$0.00") TextBox28.Text = Format(iva, "$0.00") Dim porrefrendo As Double Dim pordesempeño As Double porrefrendo = iva + almacenaje + totalrefrendo
TextBox29.Text = Format(porrefrendo, "$0.00")
pordesempeño = iva + almacenaje + totalrefrendo + Val(TextBox25.Text) TextBox30.Text = Format(pordesempeño, "$0.00") TextBox41.Text = Format(Val(TextBox25.Text), "$0.00") TextBox42.Text = Format(porrefrendo, "$0.00") Dim hoy As Date = Date.Now Dim fecha30 As Date = hoy.AddDays(30) Dim fecha40 As Date = fecha30.AddDays(10) Dim fecha39 As Date = fecha30.AddDays(9) TextBox47.Text = fecha30 TextBox46.Text = fecha40 TextBox49.Text = fecha39