For espp sales, how do I calculate the price I paid per share?

On the on demand tax guidance it states "Enter the lower of these two stock prices: the price on the first day of your offering period and the price on the date your stock was purchased, minus your ESPP discount."  What does this mean?