regardless of the paycheck dates. you need to the h1-b application by the employment termination date to keep h1-b status. your lawyer is corret.