to live. everyone is different.
you can ask your doctor how long you have left to live. they won’t be able to give you an exact answer. this is because everyone’s cancer and everyone's body is different. but your doctor may be able to give you some idea based on where the cancer has spread to, how quickly you are responding to treatment, how quickly the cancer has spread, and what problems it is causing. and they should be able to let you know when you are approaching your final weeks and days.
it can also be helpful to talk with your family about how long you have left to live. you 