Depends on where you live, for me for instance, it's not that costly as it is over in the States. I can get a bachelors and masters for maybe less than 15k, not to mention if you have a job while you are studying that debt you owe is even less.
Currently it costs me ~$1400 yearly for my bachelors, which is 4 years.
for masters it's the same costs except it's 3 years.