I think that you're looking at the wrong end of the equation.
To me, the key is to start with the expected selling price. Subtract labor, parts and profit and that will give you what you can afford to pay for a bike.
__________________
My greatest fear is all of my kids standing around my coffin and talking about "how sensible" dad was.