Your first sentence is correct, provided you leave out the when, which if used would make it incorrect.
In your second sentence your should say every time rather than everytime. Everytime seems to have appeared in the last five years or so in pop songs, but has yet to achieve the status of a recognized English word. Also, your second sentence has a problem with sequence of tenses.
Every time you study hard, you will enjoy benefits from your work in the future.

Student or Learner
Bookmarks