M-1 Depreciation?

Can someone help me understand the additions and subtractions of Depreciation to the book for income tax purposes? For example: Depreciation per books was $20,000. MACRS depreciation is used for tax purposes and was $25,000 This is considered Additional depreciation. Therefore you subtract it while calculating ordinary income for tax purposes (5,000) But then if the question directly gives you Excess book depreciation, you add this back. I am not sure how this works. Can someone explain to me and perhaps provide a few example? Thank you.