Gain And When in the WEB
2 verses of the World English Bible have both "gain" and "when".
Acts 16:19 But when her masters saw that the hope of their gain was gone, they seized Paul and Silas and dragged them into the marketplace before the rulers.
Acts 24:27 But when two years were fulfilled, Felix was succeeded by Porcius Festus, and desiring to gain favor with the Jews, Felix left Paul in bonds.