Calculate theta using Vertex