When should the filter be replaced?

It is necessary to replace the filter every time the "maintenance" light switches on.