Fixed distance formula