do-re-mied

adj.

Drunk by closing time, and spending the morning calculating whether the remaining money buys toast.

Theus was do-re-mied, counting coins beside the coffee machine with unusual seriousness.

Source: Wiktionary