Fullstack Labs Interview Question

What does the CALCULATE function do?