Keeping in mind the natural ebb and flow of human attention, 30-45 minutes of an online class should be just perfect.