Online writing courses can last anywhere from an hour to a year. You can do them whenever you have time because most of them have a flexible schedule. Remember that, in addition to the lectures you'll be watching or reading, you may have exercises to complete, which will take time.