hepa filters time to replace?

I have an air purifier and it has a hepa filter. How do you know when it’s time to replace hte hepa filter?

They say the hepa filter on this unit should last 5 years. But the hepa filter looks dirty to me (it’s only been about 1.5 years so far). Can a hepa filter look dirty but not need replacing?