The ‘fundamental equation’

How is the ‘fundamental equation’ for the current account derived? How successful is it at explaining real-world current account behaviour?