Since I purchased my vehicle in 2008, how many years later do I have to get a SMOG check again?

I keep forgetting, and as I'm told it varies on the vehicle.

Anyone with thoughts on this?