If the H-1B petition is filed before your OPT expires on May 23, CAP-GAP will extend your OPT through September 30 if H-1B is approved.