It took a week for the cold to go away.

Literal

Cold [subject-が] heal [purpose-のに] one-week took.

治るのに一週間かかった states a duration plainly: のに for the goal of healing, plus かかる ('to take [time]'). Simple and factual.