Fixed distance formula.