class SolarFluxCorrectionFactorCalculator {

    static double getDayCorrectionFactorFor(int day, int year) {
        // see """"""""""""""""""""""""""""""""""""""""
        //     "  An introduction to solar radiation  "
        //     "            Muhammad Iqbal            "
        //     "                1993                  "
        //     " Chapter 1.2 ... Sun-Earth Distance r "
        //     """"""""""""""""""""""""""""""""""""""""
        final double gamma = PI * 2 * (day - 1) / getNumDaysInTheYear(year);
        return 1.000110
               + 0.034221 * cos(gamma)
               + 0.001280 * sin(gamma)
               + 0.000719 * cos(2 * gamma)
               + 0.000077 * sin(2 * gamma);
    }

}