Free government online courses with certificates can last anywhere from a few hours to a few weeks. The course largely determines what you select.