We were supposed to not have sex for the last two trimesters of each of my pregnancies, due to complications. We told the OB that simply wasn't workable for us. We worked out a gentle sex and aspirin therapy and did avoid sex for a day or so if I was having contractions. We didn't have sex for the 10 days or so I was hospitalized when I was in preterm labor with our first baby. Then an other week when I was hospitalized a few weeks later.
We were also supposed to go 6 weeks after each C Section, but we lasted 10 days the first time, less than a week the second and I gave him a blow job the second day home after our third baby was born. He just looked so lonely, lying on the big bed alone. I was sleeping on a blow up mattress with the baby, because my incision hurt too much and I couldn't get in and out of the water bed. So, after the baby fell asleep the second night, I invited him onto "my" bed for some quiet fun. I slept on that mattress for close to a month. We had some good times on it, when the baby was sleeping and carefully tucked into her crib (which was about the only time she slept in that crib.)
So, to answer the question; I think maybe 10 days, tops. Usually no more than a day or two goes by.