Updated formula for ndpi and ntopng