Total irradiation during any time interval of the year using elliptic integrals