Algorithm to calculate the amount direct sunlight for X,Y point at lidar environment

Job ID: 35523385

Budget: €30 – €250 EUR

I need an algorithm that can solve this. In a lidar environment for any place in the world to be able to calculate the total direct sun at a point on the ground (X,Y) with its time zone. It will be tested in different latitudes and longitudes.