Finance For Programmers Part II – The Stock Market

The majority of a programmers pay is usually in the form of stock or stock option awards. As these awards are for a particular company’s stock programmers must actively manage their portfolio. In order to do so it is necessary to understand what the stock market is and how it generally operates.

Note: All information in this post is assuming publicly traded companies on either the NYSE or NASDAQ. Privately held companies which do not trade on the open market, and foreign exchanges are not covered. You should do your own reading on the rules of your exchange and country’s stock regulations if you are not in the US.

What is the Stock Market?

The stock market is best described by historical reference. Before the advent of a public marketplace all companies were private companies. This meant that investors in those companies would have to independently value their shares, find a willing co-participant, trade the shares, and collect their payment.

As you might imagine this severely limited the pool of potential investors and was otherwise risky (see counterparty risk), slow, and very very inconvinient.

To help with this situations investors created a literal marketplace, much like a farmers market where companies and investors could gather and buy and sell shares. In order to facilitate trade, they started listing the price a given company’s shares last traded for up on a board. This became the “market price” of a share in that company. Furthermore, as both investors and companies are composed of busy people, brokers arose who would go to the market for you and buy and sell you shares for a commission.

With the advent of modern communication systems it became possible for brokers to staff the market with representatives on the “trading floor” and call in the trades their clients wanted. This is the scene of chaos you see when you see traders shouting at each other movies or on TV.

It is important to note that these traders were buying and selling physical shares. That meant that someone had to physically deliver the shares to the buyer from the seller, and the money to the seller from the buyer. The period of time this would take could be quite long hence there arose the notion of the settlement period. By convention that is three (3) days in the US on the NYSE or NASDAQ.

As you might imagine this system was rife with fraud and other financial chicanery hence there arose significant regulation and private organizations to deal with it. The primary regulator of US stock markets is the Securities and Exchange Commission (SEC) and they set the rules that companies on the market must abide by, such as standard financial reporting requirements, trading practices, etc. The exchanges themselves set rules via the Financial Industry Regulatory Authority (FINRA), such as who will insure against counterparty risk, how brokers must operate, and so on. It’s good to know these systems exist, because changes in those rules have material effects on who can trade stocks and how the deals must be structured.

Great history lesson, how does it effect me?

The history outlined above has several effects on how your stock awards interact with the market:

  1. Your company will deposit your shares with a particular broker of their choosing. Unless you file the paperwork you will be subject to that brokerage’s rules (FINRA).
  2. You may be subject to insider trading rules such as stock black out period (SEC).
  3. You will not be able to access the funds from selling your shares for at least 3 days after selling them. (Settlement period)
  4. Your company will be making regular reports (quarterly) to the market participants that will materially effect the price of the shares.(SEC)
  5. Your company will be holding shareholder events that you can participate in as a co-owner of the company (SEC).

How do I actually trade?

The stock market is active Monday – Friday 9am EST – 4pm EST. All trades are performed inside that window, assuming you don’t want to do anything fancy.

Assuming you’ve had shares released to you, are following your company’s quarterly reports, looked at analyst estimates, and have decided it’s time to sell trading is fairly simple. You tell your broker you would like to sell X shares at Y price subject to a couple of conditions.

The first condition is the trade type. This can either be a “market” price trade, or a limit trade.

A market price trade is exactly what it says. Your broker will list them on the market at the last market price, and someone will buy them at that price. Three (3) days later the money will be deposited in your cash account at the brokerage.

A limit trade works differently. You set a limit that the share price must be above in order for you to sell and a time period you are willing to wait for. The trade will be open until that price is reached, and execute when it does so. If the stock does not reach that price before your time period expires the order is cancelled automatically. If you change your mind on the sale before the time period you can cancel it automatically and place a new trade instruction.

Upon execution the shares are sold, and three(3) days later the money gets deposited just like a market price trade

There are two time periods that are currently accepted by all the brokers I’ve seen. Good for the day, which expires at the end of the current trading day, or Good for 60 days, which expires 60 days after you make it.

Conclusion

The stock market is how you’re going to make your money. You need to be watching what the overall market is doing (e.g. going up or down), and specifically how your company is performing. Read your companies financial statements. Read financial analysts estimate on where things are going with your company and why. Decide for yourself if you agree or disagree. Remember you do have insider information, use it appropriately.

I encourage you to examine some of the macro economic factors that go into the current behavior of the market, and reading sites like the Wall Street Journal, Bloomberg, and the Financial Times will go a long way towards that.

Finance for Programmers Part I – Stock and Stock Options

Some of my friends are considering transitioning from government to private industry as a programmer. In order to assist them in evaluating companies and offers, I’m starting a new series “Finance For Programmers” that will cover some of the terms and ideas you’ll be hit with when getting an offer. If there’s anything you want me to cover in subsequent posts please drop me a line at ben@follis.net.

Now, on to Stock and Stock Options for programmers.

What is Stock and how do I make money from it?

To begin we must first describe what stock is. A stock share, as you might surmise from it’s name, is a share in the ownership of the company. If there are 100 shares in existence and you own 50 of them, you own half the company.

In order to raise funds a company will sell shares to investors. If they are offered to a limited set of people under specific terms they are a private company, and if they offer them to the general public and sell them on the open market they are a public company.

The distinction between a public and private company is of critical importance when evaluating an offer. Because there exists no public distribution of shares, it is typically very difficult to sell shares in private companies. Additionally, most private companies have restrictions on who can buy, or how their shares can be sold. This means you will very likely be unable to exchange your equity for actual money unless a few very specific events, called liquidity events, occur. (E.g. The company makes an initial public offering and goes public, or gets bought out).

Shares of public companies on the other hand may be bought and sold on the open market and are typically listed on an exchange you can access with your broker such as NYSE or NASDAQ.

In short: if you take a position with a private company you will not be able to immediately cash out shares released to you, while you can cash out as soon as the shares are released to you in a public company.

Wait, “released to me”? What does that mean? What’s vesting?

Companies award stock to their employees for a few reasons. First, (and this is especially true for private small companies like startups) is that if they can convince you to take stock they don’t have to pay you cold hard cash. Second is employee retention. In order for retention to work there are usually some restrictions on when and how you get your shares, and in order of importance they are

  1. Value (Quantity x Price)
  2. Vesting Schedule
  3. Lock up Period (private companies only)

Valuation

The immediate value of a share in a public company is trivial to determine. It’s the market price on the day your offer arrives.

Valuing a share in private companies can be quite complex because there is no public benchmark. However there will usually be a valuation computed at the last investment event (called rounds) or liquidity event of the company, and that will usually be the value the company says the shares are worth. You must take this with a healthy grain of salt, however, as there’s no saying the shares will be worth that valuation when you are able to sell.

Vesting Period

In order to enable employee retention stock awards are not all available to you to sell on the first day of work. They are typically released to you on a fixed vesting schedule that requires you to be with the company a set period of time to receive the shares. That vesting schedule starts on your grant date, which usually is your start date or very close to it.

There may be particularly unfriendly terms on that schedule such as a “cliff” that specifies that you get no shares before you’ve been with the company for at least a given time period (your equity falls off a cliff).

A typical silicon valley vesting schedule is the entire award vests monthly over four(4) years, with a one(1) year cliff. The four year vest means you nominally have 1/48th of your shares released to you every month. Unfortunately, the 1 year cliff means that you get NO shares released in the first year, and furthermore get NO equity if you leave the company before 1 year has passed from your grant date.

Companies can and do mess with the vesting schedule to screw you over. Notoriously, Amazon’s vesting schedule gives you 5% of your shares in the first year, 15% of them in your second, 40% in your third, and 40% in your 4th. As most Amazon employees do not make it to 4 years, you should assume the vast majority of your equity “award” is valueless.

Lock Up Period

To prevent all of their best employees leaving as soon as a liquidity event occurs many private companies will place a further restriction and not let you sell your shares until a fixed amount of time after the event. This period is called a lockup period (or lockout period) and has caused many a heartache. If you have a lockup period of six(6) months, your company goes public at $100 a share, and the market tanks the stock three(3) months later, you are NOT going to be able to sell at the $100 price.

Stock Taxes

Taxes on stock shares are fairly straightforward. The IRS wants their cut when your shares are released to you. In public companies they’ll usually take the taxes out of the award before you get it. In private companies they don’t. Even worse, you are now on the hook to pay the taxes on the value of the shares in the year you got them, but unfortunately cannot sell them. All is not lost, as there are some tricks such as 83b elections you can take on your grant date to reduce that burden when you hold shares in a company who’s value is growing quickly.

Employees hate paying taxes on shares they can’t sell, so in order to better retain them private companies (especially startups) will often give you stock options instead.

What is a Stock Option?

A stock option in the context of employment compensation is a contract that allows you to buy a given number of shares for a given strike price on or before a given expiry date. They differ in normal options in that you don’t have to pay for them and the expiry date is usually years in the future instead of months, unless you leave the company(then it’s 90 days from your leave date). The common term for employment related stock options is incentive stock options (ISOs).

In most respects the ISO awards work exactly like stock awards with a vesting schedule, cliff and whatnot. The difference is you really do need to pony up the cash at the strike price to buy the shares. Buying the shares with the options contract is called exercising the option.

ISOs however have very different tax treatment from stock awards in that you only pay the taxes on them when you exercise. The taxable value of the option contract is the current value of the shares covered by the contract minus the cost to you to buy them at the strike price. This means that as long as your options haven’t expired you can pick and chose when to take the tax hit, as well as chose what percentage of your award you want subject to tax right now.

Because of this very favorable tax treatment public companies usually only give ISOs to executives or very highly placed employees.

Startups however frequently give them to everyone because it allows their employees to avoid taxes until they cash out.

Common Gotchas with Options

The biggest problem with ISOs from an employee perspective is the strike price and expiry. It is entirely possible for your strike price to be higher than the current value of the share. If that happens your options are worthless, or more accurately, have negative value to you. This is called being underwater. You will hear many programmers complaining about their options being underwater when a company isn’t doing well or the share price tanks.

The second biggest problem is the expiry shortening to 90 days after you leave the company. All your options go away if you haven’t exercised them by the expiry date, so if you want to get the shares the options entitle you to, you have to pay for them at the strike price. As most people do not leave companies that are doing really well, that can be a tough decision.

Conclusion

I’ve covered the basics of the basics here. I’d encourage you to look into the following areas

  1. 83b elections
  2. ISO Grant/Vest dates and Long Term Capital Gains
  3. Restrictions on your granted shares (usually voting) in which case they become Restricted Stock Units (RSUs)
  4. ISOs and Alternative Minimum Tax

If you’ve any questions drop me a line at ben@follis.net