What if the business is sold at a later date?

In this case, any outstanding part of the deferred development costs will be paid to the developers as part of the sale revenue.  The requirement to invest the agreed proportion of gross profit will normally be binding on the new owners, but if that is undesirable it can be bought off for one year's agreed proportion of the gross profit, as reasonably forecasted.