How can i create a formula for IRR and NPV calculations

How can I create a formula that calculates NPV and IRR in my project boards?