algorithm of money accounting improved