computeNbResult improved