It is annoying, but its reasonable to put up with it on rare occasion.
The people over the back from us hosted a couple of parties once - not close together - but it was extremely loud banging music from about noon onward. I couldnt even hear the TV sat in my own living room.
But fair play to them, both times when it got to 8pm the music went off immediately - obviously in recognition of kids bed times etc.
I didnt like it, but that's the only 2 times they have done it and they were reasonable about the end time, so I was reasonable back.
Another time, a house had a party - it was for a boys 18 or 21st or something - and they still had banging music at 1am and so I did make a complaint about them and they had council officers at their door and the music went off. That was just pig ignorant on their behalf. I know when people are having a drink, enjoying themselves etc, they arent thinking about the neighbours, but its courteous to be aware of the effect you have on others.
If you find a certain neighbour tends to have loud, late parties repeatedly, a good idea is for you to then have loud, early parties the very next morning. Purely coincidentally, of course, but these happy accidents can perhaps make it clear to people the extent they are impinging on others, if they find they cant get to sleep themselves after keeping everyone else up. They never expect to be on the receiving end of their own type of behaviour.
In the street nearby, we have a family of "party people" - honestly, they would celebrate anything. The slightest pretext and they have decorations up, caters in, the street rammed with guest parking, etc. They are never too loud or anything, I just hate people like that, being fairly antisocial myself lol 😂