My level is too low to comment BUT I can post this answer so here it goes.
I see all of you spamming about finite bets and finite money. However, if we do the maths regarding ONLINE roulettes. I came to the following conclusion.
If you have a starting budget of 20000, the actual chance of losing is very small (not impossible though, but I guess that impossible doesn't exist in statistics).
Here's why:
All rolls are completely independent of eachother. The example i'm using has 15 numbers, 7 red, 7 black, 1 green. This effectively means that you have around 46% chance of winning if you bet on red or green.
Now follow me into some maths. The chance to lose this throw and the next is those two chances multiplied (basic). Your chance to lose is 0.54, so your chance to lose twice in a row is 29%. Now if you keep going like this, let's look at the possibility you'll lose 10 times in a row. this effectively means 0.54^10. We see that this chance is only 0.2%. If the minimum bet is 1, that means (using Martingale of course) you need a minimum of 1023 to be able to bet 10 times on the same color, doubling your bet.
If you take it even further (saying 13 times not your color in a row), you have 0.03% chance it actually happens and that's something I think we can call statistically negligeable. So that kinda almost solves the finite money stuff.
Regarding the finite time, some sites offer you an autobet feature. I recommend using that. And for god sakes, don't turn that autobet off when you lose some rounds. Chances are that next round is your round.
(I know that 0.03% is still a chance to lose. But as you win and earn more money, you'll be able to take on longer 'trains' and eventually this chance will go to its 0 limit.)
Just keep in mind, the house always wins.
Small sidenote: i'm only talking about online roulettes and I've only played one so far. So the possiblities of me being wrong are pretty big. Just please correct me if i'm wrong.
EDIT:
As commented, there were no real equations although i'm talking about maths. So I'll explain quickly (without too much depth) how I reached certain numbers.
You have 46% of winning, this is because you have 7/15 chance to win (because all numbers are equally distributed). So 7/15 ≈ 0.46, which means 46%.
As I said, the chance of losing two rounds in a row is basic Maths. Knowing the fact that two rounds are completely independent of each other, we can just multiply the odds and see the possible chance to lose. (Note that the chance to lose 1 round is ca. 54%). This effectively means 0.54*0.54=29.16%.
Going even further, the chance you lose 10 rounds in a row, would be:
0.54*0.54*0.54*0.54*0.54*0.54*0.54*0.54*0.54*0.54=0.54^10=0.00210 or 0.21%.
And of course, the further you go, the less chance you have. Taking the 13 rounds example: 0.54^13=0.0003319 or 0.033% chance you'll lose.
But keep in mind that you'll have to use the martingale system of course, otherwise you'll lose. This means you will need a large enough starting balance, to be able to avoid those nasty trains.