calculate fold cha