Maintenance therapy can continue for weeks, months, or years. The length is based on the type of cancer, the medication, efficacy (how well it works), and side effects.