Suppose that I have a friend which I miss him very much and I am waiting for his call.
10 days later I see him in the university and I want to tell him that if he had known, how happy I would be by his calling, he would have called me(perhaps my sentence is grammatically wrong). so what is the sentence I should say?
is this correct?
If you had known how happy I would be, you would have called me.
and if it is correct why we use "you would have called me"?