Gauss's Weekday Algorithm, Visualized
lukasmetzner.github.io
lukasmetzner.github.io
To recover the fact that 365 % 7 == 1 from the given formula, one can notice that the sum of the coefficients 5+4+6=15, which modulo 7 is 1.
So for example doomsday for this year is a Saturday, so I know the last day in February is a Saturday (this Saturday in fact) and also that Independence Day, Boxing Day and Halloween are also going to be on Saturday this year, because they are all Doomsdays (on non-leap years).