It shows you right on that picture, VOUT=(1+Rf/Ri)*VOS
(because true VIN = imposed VIN differemce (GND) plus VOS).
The basic noninverting closed loop gain equation.
The figure is quite self-explanatory: Offset at the virtual ground -> non-inverting amplification of the offset -> G = 1 + (R2/R1) = 1001. Vo = G*Offset.