The duration of hormonal therapy can vary depending on the type and stage of cancer. For breast cancer, treatment with hormonal therapy may last for five to ten years. The duration for prostate cancer may vary from several months to a few years. The specific duration is often tailored to the individual patient's response to treatment and overall health.