The upper-class boundary of a class interval is the upper limit, considering the continuous nature of grouped data (typically 0.5 above the stated upper limit if classes are assumed continuous).
For the class 21 - 30, the upper-class boundary is 30.5.