Earn-out period in a M&A transaction: What happens if the parties have not defined it?

A two-year earn-out period defined by the courts (by filling a contractual gap).