whenever
(at every time when)
- You can come here whenever you like.
- Whenever she leaves the house, she locks the door.
when
(at the time that; during the time that)
- Call me when you get home from work.
- I was just about to leave when the phone rang.