Converting Kelvins to degrees Celsius is pretty easy following the formula above. You only need to subtract 273.15 from the given Kelvins.
With 4000 K it will be: 4000 - 273.15 = 3726.85 °C