I would install the bearings into the frame and measure the outside distance apart of the 2 inner races.
then you can add on the length you need to go into the lower triple and upper triple and the distance the nuts take up
plus a mm.