Here is the code I've been working on:
https://jsfiddle.net/rzcos32n/
This code includes a function called "isItANumber" that calculates and determines specific results based on certain conditions. The function also controls the position of a circle element on a line, representing different percentage values.
However, there seems to be an issue when the percentage value in the circle reaches its maximum (100%). This causes the circle to go off the page due to its margin-left property being set too far. Is there a way to keep the circle within the visible area at all times, even when it's positioned at the extremes (0% or 100%)?