Relative distance was then calculated as follows: