Dhiradj, you are making this too diificult! Let's do this thing!
You found the amplitude correctly.
Remember that a perios ends when the cycle starts over again. It starts again at 5 am, 24 hours later, so our B = 2pi/24 = pi/12.
C is the vertical shift. Normal cosx starts at 1 and goes down to -1, and the middle is 0. Halfway between 34 and 74 is (74 + 34)/2 = 54.
Lastly, I said cosx starts at 1 and goes down to -1. We are starting at 34 and going up, soooooo our final answer should be...
H = -20cos(pi/12) + 54
Hope this helps!