define and calculate the accumulated fund
calculate profit or loss for the year from changes in capital over time