Basis is the unglamorous arithmetic that decides how much of your equity you keep when the tax man comes calling, America Foy writes.