evalvate the cost of path and initilize the project