Risk-Sharing Rule in Project Contracts