I need some help trying to determine what input I need to put into my code to output the distance traveled by the magnet in my sensor setup.
Only you know anything about YOUR setup, and you're not telling us.
If you have the magnet mounted on a wheel, and the sensor on the frame, simple geometry will tell you the contact patch's travel distance per trigger of the sensor.