According to code, what is the maximum allowable height for a residential stairway hand rail measured from the top of the handrail?

According to code, what is the maximum allowable height for a residential stairway hand rail measured from the top of the handrail?