fixed issue where estimate distance would return float(‘nan’) which isn’t checked with np.nan meaning nan * pq.pc is returned
additional value checking for estimate distance