Compute theta given some t