Doomsday algorithm practice