Linear formula for w. Bench: 3328507 (#2239)