Depends on style, how good you are at hygiene and keeping 02 out.
As a rule darker stronger beers last longer that lighter more delicate beers. Pale ales peak then decline way way before then. Weeks to months.
I’m down to my last few bottles (a keg is a big bottle) of 2019 Xmas stout and...