Total periodic pension cost formula
Can someone help me understand this formula (regarding total periodic pension cost):
In the Kaplan book, it says that total periodic pension expense is:
Employer Contribution - (ending funding status - beginning funding status)
However, in the CFAI text I found the formula for total periodic pension cost to be:
Ending funding status - employer contributions - beginning funding status.
Could anyone help how to get from the first to second formula? I get confused and maybe my algebra is off.