calculate stiches and print out test in consolte