1/4 mile, truck weight, time to get to the other end, speed at the other end, RPMS, final gearing etc. There's several web sites for it. Some assume 10% drive train loss, others 20%. Its all good for an estimate and it's less expensive and time consuming than ripping your truck apart.