rfsoc_sam dBfs problem

Device: RFSoC 4x2 Kit
PYNQ Version: v3.0.1
I am reviewing the rfsoc_spectrum_analysis.ipynb and would like to ask how the Y-axis dBFs in spectrum analysis is calculated. I have looked through the Python files in the rfsoc_ram directory on GitHub but did not find the relevant mathematical expressions.