Which is grammatically correct? " Until when do you want to continue with the lesson? or How long do you want to continue with the lesson?"
They're both grammatical, but the second is much the more colloquial. You would use 'Until when...?' in a context like this: Until when/what age is school compulsory in your country?