how to be smart with your money when buying an apartment