I mostly know in advance when I do not want to cook (every Monday, for example), so I make sure to have some easy meals those days. Like a burger, or a wrap with smoked fish. or i make sure that i have eaten already in the city or at the train station before heading home.
If it is...