ONP calculation