what is the equasion (if one exists) to calculate the min, max, and value of a scrollbar depending on how long something is