Sheet Metal Twist

hi all

how can i twist sheet metal edge flange as a below pic and flatten again?

SolidworksSheet Metal