Eggs refrigerated in a sealed container will last for about seven months. Their whites may become somewhat runny and the yolks will not stand up like fresh eggs, but the smell and taste will remain good. Start with fresh eggs, of course, and don't wash the bloom off - that will increase the porosity of the shell.
You can tell good eggs from bad by putting them in water. If they sink, they're fine. If they float or turn up on end like they're trying to float, throw them away.