calcN working