write a easy formula Max today - Max yesterday

#1
Hi, guys, I'am trying to write some formulas and I would like to know how to write an easy formula like

if maxToday is less then max yesterday and min today is less then min yesterday, then do something.

Tks in advance.

E.