Count all the variables from before (distance, buffer, safety buffer, winf, lie, elevation)you get the final distance, choose a club which is the closest to the certain distance if you hit it the average length. Example: