Wiping Over Socks

What are the things that would nullify wiping over the socks? How could we count the period ...