Scanner 20 Day break out

Can any one please post the code for finding out 20 day break out for dates in the past.