Don't think about the cost, if you do you won't do it. I did mine last weekend and frankly in the end it will cost twice the course cost when you add in transport, accommodation, dive site entry and food.
Like some have said do the course when you are "happy" with the basics and bad habits...