I boil eggs for 7½ minutes. Slightly longer if they're really large eggs, slightly shorter if they're really small.

The yolk turning a little green isn't a problem in itself, although at that point they're too hard for my taste. But yeah, it's not harmful.