Text this: A Novel Approach to Calculate the Range of High-Energy Charged Particles Within a Medium