Add a method for calculating a value for N depending on CPU speed