This is a comic-book character so the answer to "how long does his power last in <situation>" isn't easy to answer. The short form is: as long as the writers need it to. He can go for days under a red sun in one episode/issue, then be disabled immediately when someone fills a room with "red star radiation" in the next. Such is the way of comic books, and Superman is no different.
In general, the writers tend to stick with the idea that Superman's cells are little capacitors that can store up the energy he gets from our sun, although there's no consistent explanation of just how that works. As long as he has access to sunlight his cells continue to charge up, and whenever he uses his many, many powers the stored energy is consumed.
The problem, with regard to your question at least, is that there's no simple way to gauge just how much energy he has stored. He could be running on fumes or maybe he just swallowed an entire sun (refer to DCeased) and thus has essentially unlimited power. This might explain why sometimes he can go for days under a red sun before he loses his power, while other times (sometimes within a few issues or episodes) he is rendered immediately powerless by Lex flooding a room with "red star radiation" or something.
It seems that some writers think that being near a red star suppresses Superman's abilities, while others think that he just can't gain any power from an old, tired sun. Different versions of Superman have different reactions to it, but most of the time the objective is to make Supe appear as powerful as possible.
So... if he fills the tank a little and uses his powers wisely, Superman could conceivably last for years. I mean, he once tanked the energy blast of a sentient galaxy and absorbed more energy than Cyborg could quantify. Ate a sun. Ate the anti-sun. Oh, and absorbed the energy of one of the 7 fragments of the Totality, the source of power for the entire DC multiverse. He could probably run for a few billion years or so on that one.
Some examples of this are below:
When Tyrell hits Superman with a blast of synthetic red sun energy he is stripped of his powers.
Source: Superman: Earth One #1
But it's not just the "precise frequency" of Krypton's sun that does it. Here's a much older example where Superman's power is totally removed under a red sun.
Source: Action Comics #300
And of course in War of the Supermen we have Lex shooting a missile through a wormhole to turn our sun red, instantly robbing all of the Kryptonians of their powers.
Source: Superman: War of the Supermen part 2
[
But when Superman and Lex go to Apocalypse in "Imperius Lex" the light of the red sun doesn't stop him, he just can't draw energy from it. (I'll go find more if Valorum is still not satisfied.)
Source: Superman Vol 4 #35 (Probably, but I always mix these up.)
As for Supe's unlimited power absorption... there are several we could choose. But here, a few issues back from that last image, we have a sun-dipped Superman (he flew through a bunch of stars) punching the World Forger so hard he destroyed the multiverse the Forger was creating (the pretty field of lights and broken space windows in the image below). Let me repeat that: he punched a nascent multiverse out of existence.
Source: Justice League Vol 4 #25 - "The Sixth Dimension! Conclusion"
And let's not forget the time Superman Prime wandered the universe for a while, got bored, and spent 15,000 years sitting in the sun absorbing power so he'd have enough juice to take down Solaris. (DC One Million #4 if you're looking.) (And yes, I know, he used a GL ring to do the actual job.)