My first commit was on June 25, 2010. So, 37 from first line of code to launch. I was still working a full time job at the same time, so it was coded during nights and weekends only.
There were very few costs durting that period other than maybe a hundred dollars in server costs for testing and food.
Edit: Now that I think about it there actually were a few other costs such as incorporating the company, outsourcing the logo and business card design, setting up the bank account, and so on. The total came to around $2k.