Calcular Alarma