Are you going to sleep in time?
If I finish my work early, I will go to sleep in time.
Did you visit your grandpa?
If I hadn't been at work so long, I would have visited my grandpa.
Do you come to their party?
If they visited me, I would come to their party.
Why are you coming so late?
If I hadn't missed the train, I could come in time.