This is a really simple question but I couldn't find an answer to that.
The question is how to find the period of a sine function (coefficient B) according to the slope of the required sine function. The slope is shown in the following image.
$y = A \sin(B x + C) + D.$

We suppose that $\;\boxed{\displaystyle y(x) = A \sin(B x + C) + D}\;$ and observe that :
(supposing the picture accurate of course!)
We may then deduce :
It remains only to find $B\,$ in $\;\displaystyle y(x) = \frac {\sin(B x) + 1}2$.
The derivative $\;\displaystyle y'(x) = \frac {B\cos(B x) }2\;$ becomes for $\,x=0\,$ :