Online learning is neither fast nor easy. On average, full-time distance learning students take approximately 15 to 20 credit hours per semester. Depending upon the major, that equates to 2.5-4 years to earn your degree, which is still a shorter period of time than at most traditional learning institutions.
It depends on the individual program, how many previous credits your program will accept, and how quickly you can complete coursework. You usually need at least 30 semester credits from a particular institution to receive a degree from them.
And make sure that the specific degree will help you meet your goals. You could sink substantial time and money into a program and find out that it is not as respected by employers and academic institutions as you once thought.