I measure along the side of the stem from the edge of the handle bar the midpoint of the steerer tube and add the radius of the handlebar, It can be difficult to find the exact point to measure from but since stems usually come in 10mm increments you can round to the nearest 10mm to make up for measurement errors. Measuring from the center of the top cap is only accurate if your stem is +/- 0°.