Good script, does what it should do. But you should fix the "Time until next level", you are using the wrong math formula. Whenever you get your first XP drop for example 20.000 cooking xp, it thinks that you will get this 20.000 XP constantly which is not the case. You should check how many XP is needed until the next lvl for example 300K, then you should check how many unfermented wines are in the bank for example 100 which is 20K less XP because every wine is 200 xp. That makes 300k now 280K. Then you should check how many jugs of wine the bot makes per hour which is for example 2.000 per hour, that's 20K xp per hour then you should divide 280K by 20k which is 14. Then divide 14 by 60 which is 0,23 which means that it will take the bot 23 minutes until the next level.
Btw here some extra idea's for the script:
Make an option to move mouse out of screen when idling.
Make an option which will make the bot have an afk delay.
Sometimes the script gets stuck because it withdraws 2x 14 grapes (by a bug or something) so it tries to withdraw 14 jugs of water but that's not possible because your invy is full of grapes, so it will keep trying to withdraw the 14 jugs of water. You should prevent this by adding a function in the script whenever you're not making jugs of wine for 2 minutes, the script will stop.