(ii)recover from the Contractor any losses and damages incurred by the Employer and any extra costs of completing the Works, after allowing for any sum due to the Contractor. After recovering any such losses, damages and extra costs, the Employer shall pay any balance to the Contractor.