If you take good care of your spark plug, it can last for years. I haven’t changed the spark plug in my lawn mower for several years now—however, I do clean it regularly as explained in this article.
A good rule of thumb would be to change the spark plug at the start of each mowing season or every 100 hours of use.