Rayleigh correction algorithm for Sentinel 2

Hi everyone. For a Sentinel 2 imagery batch processing, I need respective algorithms for applying Rayleigh correction in Google Earth Engine environment. Some papers have been checked out, but so far, it has been too difficult to find an example that shows step by step how to solve mentioned process. In order of that, I wonder if someone can help me by recommending some reference or documentation.

Thanks in advance!

Giancarlo Alciaturi.

You had any luck with this? I’m dealing with the same thing right now.