Line dist formula for jm2018sja | ScratchStats