days are numbered

[days are numbered] (Someone or something) does not have long to live or stay.

The days of the old school building are numbered.

When a man becomes ninety years old, his days are numbered.