When you are buying a house, you have a 10 day window to inspect the property and provide the seller with the findings. You may also want to request an inspection when preparing to sell a property.
If you happen to buy a new built constriction, most builders provide a one year warranty. So before it expires, make sure to have an inspection and then ask the builder to fix any issues. An annual inspection is also a good idea to make sure major house components are functioning the way they are supposed to.