Radiance to Reflectance Algorithm

I was wondering why in the Radiance to Reflectance Processing algorithm there isn’t Sun distance from Earth. I used to know it is a relevant parameter for the conversion to Ref.
Is that an approximation or a different formula from the classic one?

Thanks

Ander

SNAP formula