noun
remaining life; time left to live
Often used in serious contexts such as terminal illness, life expectancy, or the limited time one has left. Can be used both literally and figuratively.
医者から余命半年と宣告された。
The doctor told me I had six months to live.
彼は余命を家族と過ごすことにした。
He decided to spend his remaining days with his family.