Relative distance computer