What happens before investment partnership (مضاربة) profit is distributed?

investment partnership (مضاربة): Business, Profit and Termination