How to compute the energy fluence of X-rays

I have covered the X-ray tube model in this topic [Failed to simulate an X-Ray tube]