You mean in one sitting, or consecutively over a certain period?
In one sitting, I did almost 2 days of f2p mining guild mining. Account was not banned.
Consecutively, I botted (mostly babysitting though) 6-12 hours a day, 4-5 days a week for a year and a half before selling my account. No ban, obviously.