The tangent is correct, but it looks like you confused secant with cosine. Remember that secant is hypotenuse over adjacent.