In that case, your H-1 application may be
denied according to CIS's regulation. You may have to change visa outside of the US. Grace time is usually used for people to leave the country without being considered as overstaying. However, CIS has the discretion to overlook a small gap.