how long do you/did you have to wear your stockings for after your c/s guys?

mine give me the worse calf muscle pains - they dont cut in or anything i just wake up all night with pain and my legs collapsed when i got out of bed this morning

they told me 4 weeks??