The $ 4.7 billion pipeline , with an initial capacity of 27 billion cubic meters a year , will stretch 550 miles in Russia , beginning in the village of Gryazovets , about 150 miles east of Babayevo , and ending on Portovaya Bay , near Vyborg north of St. Petersburg on the Gulf of Finland .