For the NAV to go up, the prices of the underlying securities have to increase. Flows affect the size of the fund, not the NAV. Your return is basically the price at which you bought the fund and the current price, it’s as simple as that. If you are interested here’s how the NAV of a fund is calculated:
To know more about measuring your returns, check this post: