Commented and Debugged calcSingleXOneWayTime