Those aren't "standard", though.
I personally don't know a single person who drinks coffee after lunchtime/early afternoon, unless maybe they had to pull an all-nighter at work/uni. None of my friends would dream of serving coffee in the evening. Coffee is exclusively a "get going in the morning" (or maybe sometimes a "perk you up during the post-lunch slump") drink in my world. I'm sure plenty of people do still drink coffee at night, but the whole ritual of post-dinner coffee feels like a very 1970s thing to me, it's something I've only seen in old movies and TV shows.
"Late" is also completely subjective. Some people consider 4pm to be late. Some people consider midnight to be early. I had elderly relatives who used to invite you for lunch and were pretty clear they wanted you gone by 3pm at the latest, and I have friends in their 20s for whom a "standard" get together starts at 10pm and goes on till 4am; ducking out at 2am would get you labelled a lightweight. There can't be a universal standard for what's considered late, since an elderly person's idea of "late" is going to be very different from a 22yr old's idea of "late."
Isn't the standard time to stay somewhere like 2 or 3 hours. That's a meal, chatting, and a last coffee or tea before going?
Depends on the situation. If I was invited for lunch or dinner by people I didn't know too well I'd probably aim for 2-3 hours, yeah. But if I tried to leave my best friends' house after three hours they'd be mortally offended and think they'd done something horribly wrong. A standard visit to these particular friends is at least six hours. I'm meeting one of my oldest friends tomorrow (who I only see once or twice a year, since she moved abroad) and we'll easily be together for eight hours minimum. But I have two other friends who are insanely busy and kind of chaotic and disorganised, and I frequently have hang outs that last for less than hour, and that is "standard" for those two particular friends.
The idea that there's some kind of Universal Standard Friendship Socialisation Time is just weird. Everyone is different, everyone's life is different, so how can you expect everyone to treat socialisation the same?