He has been away from Shanghai for two days.
意思是:他前天离开了上海.
也就是他离开上海已经两天了.
由于两天是一段时间,而“离开”是短暂性动词,所以改用been away 来替代.