Calculate programm length, vacublary and capacity