I have written some AI software that calculates the behavior of the user. If the user behaves well, then the system will increase the user score by $a$. If the user behaves badly, the software subtracts $a$ from the score. In the end, the software will produce a number (let's say $X$): $X$ is a sum of values that are the weights to my AI mechanism (sum of good and bad behavior weights).
Imagine I had 750 requests in total and my sum is equivalent to 566 (some requests have a negative weight to cancel the positives).
I need to scale this $X$ value between 0 and 1 to see, for example, if $X$ falls below a certain defined threshold (e.g. 0.3) then the system assumes a bad user. I have a problem with this statistic how to scale my number between 0 and 1.