I recommend you pick your class around 20 weeks, and start it by 25'ish weeks. With full steam as you head into your third trimester, trying to be done by 34'ish weeks. The benefit of online classes is being able to review the material at your leisure.