When describing a duration of time (how long something has continued), we use 'for'. 'He has been ill for a week' means the illness started a week ago and continues. 'To' indicates direction, 'from' shows origin, and 'in' shows containment - none fit duration context.