Calculate the boundary of s

Top