The amplitude of the oscillation is (y - yss) when y is a maximum value. The maximum values occur when ~ot is some multiple of rc and thus we have cos cot = 1 and sin cot = 0. For the 2% settling time, the settling time ts is when the maximum amplitude is 2% of yss, i.e. 0.02yss. Thus:
0