Fetching details from the dictionary...
remainder of one's life; one's remaining days; time left (to live)
医師は彼に余命半年と宣告した。
The doctor informed him he had six months left to live.
彼女は残りの余命を社会貢献に充てた。
She dedicated her remaining life to contributing to society.
家族は祖母の余命を大切にし、共に多くの時間を過ごした。
The family cherished their grandmother's remaining life and spent a lot of time together.