Distance between a and d in music?

From any a up to the nearest d, it is a fourth, or perfect fourth. From any d up to the nearest a, it is a fifth, or perfect fifth.