calculate the Junction to Ambient temperature
I assume this means calculating the junction temperature from ambient air.
I know how to calculate this:
Junction Temp = Junction to case + Case
to Heat Sink + Heat sink to Ambient + Ambient
I don't think you do. That is a nonsensical formula. And it is unclear if you are referring to temperature or thermal resistance because your terms do not have proper labels. Case to junction what? Temperature? Thermal resistance?
To calculate Junction Temperature (Tj), you need to know how much thermal power (heat) is being generated and how much of this heat is being dissipated.
If I want to know what is junction to ambient temperature how do I
calculate this from the data sheet?
There is no such thing as "junction to ambient temperature"
There is junction temperature, ambient temperature and junction to ambient thermal resistance.
Very little of this information comes from the datasheet.
To calculate the number of watts to be dissipated you need to know the electrical watts being consumed and the radiant watts emitted from the LED.
The electrical watts comes from the IV curve.

To calculate the radiant watts you need to convert the photometric (luminous) flux (lumens) to radiometric flux (radiant watts). To do that you need the spectral distribution.
The spectral distribution in the datasheet is in radiometric radiant watts.

If I were to digitized the blue curve to get the relative height of the curve at each wavelength then plot the wavelengths I would get something like this:

So now I have the radiant watts for each wavelength. I have to convert the watts to lumens. This is a two step process. Photons at each wavelength carry different amounts of radiant energy.
LINK: Conversion tables for quantum, radiometric, and photometric units
For example if we compare the 450 nm (blue) radiant flux and 550 nm (green) radiant flux
1 µmol of blue photons would be carrying 0.27 watts of energy. Whereas
1 µmol of green photons would be carrying 0.22 watts of energy.
To "measure" lumens actually the radiant flux is measured then the radiant watts is converted to lumens according to the Photopic Luminous Efficacy from the Relative Sensitivity Curve for the C.I.E. Standard Observer table.
1 Watt of 450 nm blue photons converts to 27.46 lumens.
1 Watt of 550 nm green photons converts to 679.55 lumens.
So you get the number of lumens from the datasheet

Then adjust the lumens to the amount of current you will be using to drive the LED

Then use the above conversion from lumens to watts
The temperature is a function of the thermal resistance to ambient and how much heat is being generated at the junction. In the thermal path from the junction to ambient there are a few thermal resistances.

The junction temperature decreases as the thermal flux moves from the junction to ambient. The amount of thermal resistance in the path of the thermal flux determines how quickly the flux flows measured by how much the temperature is reduced for the amount of heat generated (°C/W).
Heat flows from hot to cold. So we need to provide a thermal path from the junction to ambient with as little thermal resistance as possible. The datasheet only has one thermal resistance in this path. That is from the junction to the thermal solder pad on the case of the LED.
The next thermal resistance is the solder between the LED and PCB.
The image on the left is the copper in the PCB and the solder deposition pattern on the right.

Source: Cree XLamp XHP50.2 LED datasheet
The thickness of the solder and the solder's thermal conductivity determines the thermal resistance. You can see by the stencil patter they go to great lengths to insure the solder is as thin as possible.
The rest of the thermal resistance come from the design of the PCB and heatsink.
Thermal Resistance Model For A Typical PCB

For a semiconductor the formula for ambient to junction temperature is:

Source: Thermal Design By Insight, Not Hindsight
Power dissipation for a classical semiconductor is the same as the electrical power used:
voltage x current = watts (both thermal and electrical).
An LED dissipates the electrical power as both heat and radiant energy (light). To calculate the thermal watts you subtract the radiant watts from the electrical watts.
This Cree XHP50.2 LED has fairly poor efficacy at 129 lm/W for the 5700K LED in this line. It will dissipate more heat than a lower density LED. This LED is designed to emit as many lumens as possible in a small area as it has 4 dice creating a Vf of 11.2V or 2 dice at 5.6V. I would want to see an efficacy closer to 180-200 lm/W in a high power lower density single die 5700K LED such as the XP-3G.
The electrical power at test current is 11.2 x 700 mA or 5.6 x 1400 mA = 7.84 watts. This LED will radiate about 47% of the electrical power as light and 53% as heat. This leaves 4.15 watts of heat to be dissipated. NOTE: the 47% is an educated guesstimate based the efficacy of other LEDs for which I know the radiant flux.
If Tambient (PCB temperature) is 60°C the junction temperature is.
Tj = (Øja x 4.1 watts) + 60°
Øja is highly dependent on the PCB layout and thermal management (e.g. heatsink, thermal vias, copper thickness and etc).
In this case the required Øja would be calculated from the 4 watts that needs to be dissipated. Then the PCB would be designed to achieve the required Øja.
So you would need to estimate the Øca (case thermal pad to ambient) for your PCB to get the junction temperature from the PCB temperature. The 1.2 °C/W in the datasheet (labeled as exposed pad in above image) is added to the thermal resistance from the LED's thermal pad to ambient.
The best and easiest, IMHO, to understand source to make these calculations is:
Thermal Design By Insight, Not Hindsight
And "by easiest" I do not mean simple.
Additional Reading:
Thermal management of light sources based on SMT LEDs
PowerPAD™ Thermally Enhanced Package, SLMA002H November 1997 Revised July 2018
I found this document calculating an LED’s Junction Temperature to be of little use but it should backup some of the calculations used in my answer.
Bottom Line
You can get yourself a masters degree in thermodynamics and do the calculations outlined above. If you are very bright you could take a short cut and take the MIT Open Course Ware class: Lecture 1: Thermodynamics Part 1
Or you can do it the practical way.
Design your PCB using the best practice thermal management methods, build your PCB turn it on and adjust the current based on the temperature of the PCB near the LED and desired brightness. I generally do not allow the PCB temperate to exceed 55°C. This is given that I only use LED with a max junction temperature of 150°C.