Help!! Will award brainliest! (if correct)

What determines whether to use + or - in the half-angle formula for sine or cosine?