Run Your Own DFT Calculations to Have a Better Understanding of the XAS and RIXS Experiments