'Whatif' Function

Explain giving two examples the purpose of the 'whatif' function.