Your employment is not terminated immediately. You can still back out up until July 31. After that, there is no backing out but you continue to work until the separation date. And I believe UPS decides on that, although like
@Johney said, they may work with you on the particular date.