Expression for Matthew's Distance