My employer offers an Employee Stock Purchase Program (ESPP). Long story short, worst case scenario is that they will purchase stock on my behalf at a 15% discount and then I will immediately sell it. I am confused as to why my gain is 17.65% as opposed to 15%. Where does the number 17.65% come from? It is not intuitive to me. Example calculation:
On purchase day stock price is 10 USD. I get to buy it using my discount so, I buy it at (.85*10) = 8.50 USD I then immediately sell it for 10 USD.
So my gain is (10-8.50)/8.50 = 17.65%