applying, from a certain time, the sums of money arising from the surplus of the duties