Calculate percentage of scroll