May be this?
Sum(If(([closed date]-[opened date])<20,[returned sales]))
OR
If(([closed date]-[opened date])<20, 1,0) as Flag
Expression is this?
Sum({<Flag = {1}>} [returned sales])
Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)