take the biscuit
Verb
Meaning
(idiomatic, Britain) To be particularly bad, objectionable, or egregious.
I've seen bad grammar, but this takes the biscuit.
(idiomatic, Canada) To be of no further use; to be near death. (Can we add an example for this sense?)
Source: en.wiktionary.org