Oh good lord. That'll teach me to read the bloody manual properly.
I was checking distance using a rather more cumbersome formula. laugh