Fixed calculation error in percentify