def octave_calculator(pitch):
    """Returns pitch class and octave for a given absolute pitch.

    >>> octave_calculator(50)
    (2, 4)
    """
    p_class = pitch % 12
    octave = pitch / 12
    return p_class, octave
