At the time of retirement or death of a partner, assets are revalued and liabilities are reassessed so that the profit or loss arising on account of such revaluation up to the date of retirement or death of a partner may be ascertained and adjusted in all partners’ capital accounts in their old profit-sharing ratio.