Weather Station and Solar tracker

Can someone suggest me how to calculate sun elevation angle.

I wanted to know basic steps using latitude and longitude how they calculate the zenith and azimuth angle and there after they calculate the elevation angle. i searched it google but i could not able to understand.

Please let me know simple way of learing it