Added edited calcSolarRadiation function.