Calculate distance fixed