PIVOT POINT CALCULATION formula?

Can check this thread.