Hi Hamza,
See the explanation for real and nominal discount rate on the Financial Parameters Help topic, for example, here is a link to the topic for the Single Owner financial model (the explanation is the same for all of the financial models):
samrepo.nrelcloud.org/help/fin_single_owner.htm
In SAM, the NPV calculation uses the nominal discount rate as described in the Net Present Value topic in Help:
samrepo.nrelcloud.org/help/mtf_npv.htm
SAM's financial model calculations are based on Short W et al, 1995. Manual for the Economic Evaluation of Energy Efficiency and Renewable Energy Technologies. National Renewable Energy Laboratory. NREL/TP-462-5173.
www.nrel.gov/docs/legosti/old/5173.pdf
Best regards,
Paul.