When did charmed go off air?

It started on October 7 1998 until May 21 2006