fixed n calculation