Perfect intervals are the unison, fourth, fifth, and octave. Perfect intervals
are formed in the major scale when the lower note is the tonic.

Perfect unison (P1) has 0 half steps
Perfect fourth (P4) has 5 half steps
Perfect fifth (P5) has 7 half steps
Perfect octave (P8) has 12 half steps