예제 #1
0
        private void btnCalcular_Click(object sender, EventArgs e)
        {
            decimal valorActual = txtValorActual.Value;
            decimal renta       = txtRenta.Value;

            txtResultado.Value     = PerpetuidadAnticipada.CalcularTasa(valorActual, renta);
            panelResultado.Visible = true;
        }
예제 #2
0
        private void btnCalcular_Click(object sender, EventArgs e)
        {
            decimal renta         = txtRenta.Value;
            decimal tasaPeriodica = txtTasaPeriodica.Value;

            txtResultado.Value     = PerpetuidadAnticipada.CalcularValorActual(renta, tasaPeriodica);
            panelResultado.Visible = true;
        }