"Do you know when he will buy a car?" I said to her. (Change into indirect speech)
1
I asked her when he would buy a car.
2
I asked her if he had known when he would buy a car.
3
I asked her if he know when she would buy a car.
4
I asked her if she knew when he would buy a car.