WHENat calculate distance