If you always got a Free worker and you got Auto-Wall and Botting 20h/24h and 7/7days, I Guess it should took around max 3 months.
There is 275 walls in Th10 and you can upgrate around 4 walls per days. So 275/4 = 69 days
I hope it answer to your question.