what is the underlying formula for the percentrank function