score:2
Hainan Airlines' cut-off time at PVG is one hour before departure, meaning you have to be checked in by this time.
Given that flights to the US involve some extra security hassle and that immigration times in China can be unpredictable (although departures are usually straightforward and there's no Customs on departure), I would recommend getting there two hours before.