before deciding whether to buy
I looked into it thoroughly before deciding whether to buy that house.
Calculate the costs before deciding whether to buy a car.
He did his research before deciding whether to buy the house.
We looked into the house before deciding whether to buy it.