How to calculate the difficulty of Mining atm?

can anyone tell me how the difficulty of mining is calculated? For example, how many resources do you need to spend to get 1 nrg?

Thank you for your answers empty room.