Nobody can tell you, nobody knows for a fact on when you might get banned.
Amount of reports matters (1 reports is going to do shit)
And the amount of times you fail at a random event.
Babysitting a bot is one of the best things you can do to ensure not to get a ban. By a report you get flagged and youll get randoms. If you find out you get more randoms, theres only one wise thing to do, play legit for a while and make sure you solve them from there on. Unless your bot can solve them itself. But being flagged with multiple randoms... then just play legit. You will always know because you babysitted. You can macro a bot but only if you know that you havent been flagged lately, so the chances of multiple randoms overnight is slim at best.
When i account get flagged it can take up from 24hours to 1 month until they ban you.
People got banned on their mains 1 day after using their first ever used bots. Others got banned 1month after a botting attempt, 1 month botters are mostly suiciders since they are so easy to detect (have already mastered to first place on the offence list) and for some reason i think jagex makes them live for a whole month on purpose to bullie botters.
Every ban however, begins after being flagged, There is no way for jagex to know that you bot if there were no reports. 1 report is going to be a neglected report. If you meet a J mod online, and your not babysitting your really fucked up as can be.
I mean, fagex wont tell you when they turn out a ban. But if you've been flagged and get several randoms, make sure you babysit and do them yourself, or even better, play legit all the time. Once your done with the randoms, you can macro, bot do whatever you like until you get the feeling things will get out of hand again.
Preventing a ban, is nothing more then a intuition you must follow and a safe environment you gotta create, 24/7botting or active botting is in my view only recommended by premium bots therefore.
So im not going to say how long it takes until a ban, since this can vary greatly. Just make sure, they never get the idea you are botting, and you should be fine.
And i dont think, that stop playing will help alot. Sounds more like your personall panic reaction, why would you stop playing, then just do it legit like i said from there on. But if you would stop for 2 weeks there is no thing to tell you if it got banned or not. You might be able to play and get banned the day after, and it wouldnt be my decision but its a possibility. Its better to let jagex know, your overall very active, instead you will be active by legit playing for a week, during that playtime you will be unflagged (as i call it) and it would be pretty safe to start again. But since ban or bot investigatiosn can take up to a month, it might be possible you get banned long after that anyway, and you might really piss yourself. Thats a dilemma, nobody can help you with, bot smart, make right decisions, and i can only say, you might get pretty far.
Theres no phrase i coud give you that guarantees you wont get banned. And if you get banned, just start over, in under a year you have a all 70 - 80s skill character.