Added nps_rounded function

Also added assumption that param 3 is total