The average calculation should look like this:
{FIXED [Day]: AVG([Sales])}
Outlinear Calculation:
[Sales] > 1.2 * [Average] OR [Sales] < 0.8 * [Average]
If you want to check more about calculated fields then learn Tableau
Also, do watch the YouTube video given below to get started with Tableau training.