Fullstack Labs interview question

What does the CALCULATE function do?