Earlies, wait until the flowers have opened, or the buds dropped.
Maincrops, once the foliage has turned brown, and the stems withered, cut of the stems and remove them. 10 or so days later dig the potatoes, let the tubers dry for several hours, before storing them.