Here is a guide to how long it takes to boil an egg:
3 minutes for a really soft boiled yolk and set white.
4 minutes for a slightly set yolk and a set white.
5 minutes for a medium-cooked, firmer yolk and white.
6 minutes for hardboiled with a lightly soft yolk.
8 minutes for firmly hard boiling.