Ideas on cost function
In that great post, Joel Spolsky use Monte-Carlo simulation to give an estimation of the end of a project.

Thinking about a similar concept whould be to replace the notion of velocity by efficiency.

$$efficiency = \frac{quote}{hours} $$ 

The more discrete the scales of the quotes, the better.

It should work even with a few weeks of data.