There is a technic which is called COCOMO II Software Cost Model. Many
parameters are considered in this model. It trys to cover all kinds of
software development not only web based applications.
There are some tools which help you with this, a demo is at:
http://www.softstarsystems.com/