Remove the trim and measure the rough opening or remove one piece of the trim and measure the thickness of the window frame and incorporate it into the measurement.