substantial performance rule — Legal Definition, Examples & Cases