Calculate transmittance / reflectance instead of absolute quantities. That is, set the extraterrestrial irradiance to 1 and do not correct for Sun-Earth distance:

T=\frac{E}{E_{0}} (1)

where E is the irradiance / actinic flux / radiance and E_{0} is the extraterrestrial flux. Please note the difference to reflectivity.