The calculation of the net radiation flux