Input (grade 12): The interval between two notes in semitones is the base-21 / 12 logarithm of the frequency ratio (or equivalently, 12 times the base-2 logarithm).
Output (grade 11): The interval between two notes in cents is the base-21 / 1200 logarithm of the frequency ratio (or 1200 times the base-2 logarithm).