I just made this for you
https://www.desmos.com/calculator/bekqxioanq
You can change the co-efficients to match the graphs that you have.
\(y=a\cos\left(p\left(x-h\right)\right)-v\)
a = amplitude
(2pi)/p is the period
h is the horizontal shift
v is the vertical shift.
Play with the graph and see how it all works :)