how to find the max and min of a sine function?

For the maximum, do you do midline+ amplitude?
For the midline- Amplitude?

f(x)= 7cosx + 15
Max is 15+7=22
min is 15-7= 8

looks good