"by afternoon" or "by the afternoon"
Solution 1:
Although I prefer the sound of 'by the afternoon' or 'by that afternoon', Google ngrams (several tokens checked; no false positives) show that 'by afternoon' seems quite as idiomatic as 'by the afternoon' and was probably the preferred version between the 1940s and 1970s: