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.
The doctor told him he had three months left to live.
彼は余命を家族と過ごすことにした。
He decided to spend his remaining days with his family.
He was given a terminal prognosis.
I want to do the things I want to do before my remaining life runs out.
The new treatment was able to extend his remaining life.
命 is the broad, everyday word for 'life' itself, while 余命 narrows the focus to the specific amount of time left to live.
telling a patient their remaining life expectancy; giving a terminal diagnosis
life expectancy
Compound of 余 (yo, 'remaining') and 命 (mei, 'life'). The reading よめい is a standard on'yomi compound.