What exactly is a scroll bar? Are you referring to a drop down?
Not sure I'm understanding you correctly as this seems like a simple subraction problem, but you want variable a to equal the difference between b and c?
$a = $c - $b;
if c is bigger, do it that way. If b is bigger,
$a = $b - c;
Cgraz