So a basic idea.
Take taxes and divide them into different coffers.
UPKEEP COFFER: As profits roll in 100% of it is diverted here. After condition is met it no longer consumes funds.
UPGRADE COFFER: After UPKEEP is filled 100% profits are diverted here. Once condition is met no longer consumes funds.
ESCROW COFFER : After both of these previous are completed 65% of all profit is diverted here. This is then used for future upkeep and upgrades.
COMPANY COFFER: The 35% remaining is then split
10% goes to the company owner
25% is then divided amongst all members that were part of that company for the time period. This way company leaders can’t kick players to get all the profit.
Something like that may work