It depends on a lot of things.
In general, building an online business usually takes longer than the founder expects, which should be considered when you think about how long your savings will last.
What about getting a part time job/freelancing online and building a business at the same time?
Part time job/freelancing should cover at least some of your bills so your savings last longer until your business start turning profits.