At least two days. Then for about 5 days I place them on their sides in a plastic tub, just in case they want to leak. After that I place them on their sides on a shelf, or upside down in a wine bottle box.
Once your friends find out you make wine, friends you haven't seen in years seem to just "stop by" out of the blue. I have a lot on the racks, some in rotation to drink others not ready yet. I give a bunch away to friends and even frenemies, some we cook with and some, believe it or not, we actually drink ourselves.
I have never had a bottle leak. I use precautions, just in case, since my wine racks are all on carpet.
For Christmas we are going to give several of our friends a bottle of our homemade port. Other than that, I am reluctant to give much wine away and definitely not until it is fully ready to drink. I have a friend whose friend gives him bottles of his homemade wine. My friend just ends up tossing it. The problem is that the wine is not ready to drink, but the wine maker doesn't tell him to hold onto it for awhile.
I also leave them upright for a couple days, then on their sides for the rest of their days. Never had a leaker in storage. I have also given freinds bottles and told them not to open until a scertain date but they did anyway and now I refuse to give out wine until I'm sure it's completely ready.....wine moochers can't be trusted !
I leave them upright for 2 to 5 days, then I wipe the bottles down with a cloth soaked in Star-San, apply the shrink caps and labels then place them in my very expensive wine rack of side stacked milk crates (see picture). I prefer #9 long corks (agglomerate) never had a leaker or a blow out. Put up about 300+ bottles a year, drink about half myself share/give away the rest. First couple of years I did more batches just to get ahead of the ageing game.
Most my wine lives in cases and spends their life cork up. I’ve only been making wine since 2013, and no issues thus far. I do have to say there isn’t too much of the ‘13, ‘14 wine left as my plan has always been to consume within 5 years.
I will typically wait a day anymore. I used to leave them for days to allow the cork to expand before putting them on their sides. But, having never experienced a problem AND having switched to a #9 1.75 better quality cork, I'll bottle and shelf them the next day. After a week or more, I'll revisit them with capsules and labels.