calculate the profit of working money