function calculadoraCuotaLeasing(I, i, n)
{
    return I*((i*Math.pow(1.0+i, n-1))/(Math.pow(1.0+i, n)-1));
}

function cuotaLeasing(importe, interesAnual, meses)
{
    return calculadoraCuotaLeasing(importe*1.0, interesAnual / 1200.0, meses);
}

