Valuation of a cashflow is a very well understood thing. There is literally a button on my calculator that just does it. And a built-in function in Excel.
https://support.office.com/en-us/article/NPV-function-8672CB...