A fund is a combination of several stocks and bonds, and no one knows exactly which stocks and bonds it is. Therefore, except for the fund company method, no one can calculate the income. There is no formula.
As far as the income of 20% is concerned, it is as follows:
Net value of share X redemption date - principal/principal = 20%.