Hi nima,
I do not know this by experience, but from what I read in immigration portal forums and discussion with some friends who are currently on OPT.
If your OPT expires on July 5, 2007 you have until Sep 4/5, 2007 to change your status. If you apply in April 2007, your H1 start date...