Let’s start with simple test. Drive a mile at 25 by using a gps phone app. See if it’s a mile on the truck od. Then do it at 50. If it’s a mile both places then you have a gauge itself issue. If it off at 50 but not 25 then going to say cable. If both off. Lots of things could cause it. But let’s do the easy test first